My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/publicsuffix2/default.nix

28 lines
782 B

{ lib, buildPythonPackage, fetchFromGitHub }:
buildPythonPackage rec {
pname = "publicsuffix2";
version = "2.2019-12-21";
src = fetchFromGitHub {
owner = "nexB";
repo = "python-publicsuffix2";
rev = "release-${version}";
sha256 = "1dkvfvl0izq9hqzilnw8ipkbgjs9xyad9p21i3864hzinbh0wp9r";
};
postPatch = ''
# only used to update the interal publicsuffix list
substituteInPlace setup.py \
--replace "'requests >= 2.7.0'," ""
'';
pythonImportsCheck = [ "publicsuffix2" ];
meta = with lib; {
description = "Get a public suffix for a domain name using the Public Suffix List";
homepage = "https://github.com/nexB/python-publicsuffix2";
license = licenses.mpl20;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}