depot/third_party/nixpkgs/pkgs/development/python-modules/looseversion/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

29 lines
643 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "looseversion";
version = "1.2.0";
format = "flit";
src = fetchPypi {
inherit version pname;
sha256 = "sha256-xk5xwLKQMGg7Tqda7kMdstJcTm5TNZDlISnx2eUd4gQ=";
};
nativeCheckInputs = [
pytestCheckHook
];
pytestFlagsArray = [ "tests.py" ];
pythonImportsCheck = [ "looseversion" ];
meta = with lib; {
description = "Version numbering for anarchists and software realists";
homepage = "https://github.com/effigies/looseversion";
license = licenses.psfl;
maintainers = with maintainers; [ pelme ];
};
}