2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2022-09-22 12:36:57 +00:00
|
|
|
}:
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "packageurl-python";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.15.3";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2022-09-22 12:36:57 +00:00
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2024-07-27 06:49:29 +00:00
|
|
|
pname = "packageurl_python";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-guEVDx/CKOJeezvhxkHvlraggRUmwLTk94gqGB6GJgc=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2024-06-05 15:53:02 +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 ];
|
|
|
|
};
|
|
|
|
}
|