1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "packageurl-python";
12 version = "0.17.5";
13 pyproject = true;
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchPypi {
18 pname = "packageurl_python";
19 inherit version;
20 hash = "sha256-p74/O6cNcF9zis6b9hJPMZICRaSfpp1LQW2nA33S3mE=";
21 };
22
23 build-system = [ setuptools ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 pythonImportsCheck = [ "packageurl" ];
28
29 meta = with lib; {
30 description = "Python parser and builder for package URLs";
31 homepage = "https://github.com/package-url/packageurl-python";
32 changelog = "https://github.com/package-url/packageurl-python/blob/v${version}/CHANGELOG.rst";
33 license = licenses.mit;
34 maintainers = with maintainers; [ armijnhemel ];
35 };
36}