depot/third_party/nixpkgs/pkgs/development/python-modules/pep440/default.nix
Default email b450903751 Project import generated by Copybara.
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
2022-09-09 16:08:57 +02:00

39 lines
692 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, flit-core
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "pep440";
version = "0.1.1";
format = "flit";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-E9F4mHaavQKK8PYnRcnOdfW7mXcBKn1dTInCknLeNO4=";
};
nativeBuildInputs = [
flit-core
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pep440"
];
meta = with lib; {
description = "Python module to check whether versions number match PEP 440";
homepage = "https://github.com/Carreau/pep440";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}