depot/third_party/nixpkgs/pkgs/development/python-modules/packageurl-python/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

35 lines
768 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "packageurl-python";
version = "0.13.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-hPgFP0uFKUuYs7eHFUdYR/tI9FJewwLQbcNbJqmzB4o=";
};
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 ];
};
}