2022-09-22 12:36:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "packageurl-python";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.13.1";
|
2022-09-22 12:36:57 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-hPgFP0uFKUuYs7eHFUdYR/tI9FJewwLQbcNbJqmzB4o=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-22 12:36:57 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"packageurl"
|
|
|
|
];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python parser and builder for package URLs";
|
|
|
|
homepage = "https://github.com/package-url/packageurl-python";
|
2023-03-30 22:05:00 +00:00
|
|
|
changelog = "https://github.com/package-url/packageurl-python/blob/v${version}/CHANGELOG.rst";
|
2021-03-23 19:22:30 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ armijnhemel ];
|
|
|
|
};
|
|
|
|
}
|