depot/third_party/nixpkgs/pkgs/development/python-modules/packageurl-python/default.nix
Default email ed0c4a69f0 Project import generated by Copybara.
GitOrigin-RevId: e3652e0735fbec227f342712f180f4f21f0594f2
2023-03-31 00:05:00 +02:00

35 lines
768 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "packageurl-python";
version = "0.11.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-u8xT0stZIMgVwWJsdZkvMZv8RQtziT+nvYqsWGmqSf4=";
};
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"packageurl"
];
meta = with lib; {
description = "Python parser and builder for package URLs";
homepage = "https://github.com/package-url/packageurl-python";
changelog = "https://github.com/package-url/packageurl-python/blob/v${version}/CHANGELOG.rst";
license = licenses.mit;
maintainers = with maintainers; [ armijnhemel ];
};
}