nixpkgs/pkgs/development/python-modules/publicsuffixlist/default.nix
2024-03-30 16:38:55 +01:00

56 lines
945 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pandoc
, pytestCheckHook
, pythonOlder
, requests
, setuptools
}:
buildPythonPackage rec {
pname = "publicsuffixlist";
version = "0.10.0.20240328";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-XArawQzC9J5ShtgCG02qf8RRxNTKJMn8aiclG+4CUKY=";
};
build-system = [
setuptools
];
passthru.optional-dependencies = {
update = [
requests
];
readme = [
pandoc
];
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"publicsuffixlist"
];
pytestFlagsArray = [
"publicsuffixlist/test.py"
];
meta = with lib; {
description = "Public Suffix List parser implementation";
homepage = "https://github.com/ko-zu/psl";
license = licenses.mpl20;
maintainers = with maintainers; [ fab ];
mainProgram = "publicsuffixlist-download";
};
}