depot/third_party/nixpkgs/pkgs/development/python-modules/looseversion/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

29 lines
643 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "looseversion";
version = "1.1.2";
format = "flit";
src = fetchPypi {
inherit version pname;
sha256 = "sha256-lNgL29C21XwRuIYUe6FgH30VMVcWIbgZM7NFN8vkaa0=";
};
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 ];
};
}