depot/third_party/nixpkgs/pkgs/development/python-modules/looseversion/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

34 lines
704 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, hatchling
}:
buildPythonPackage rec {
pname = "looseversion";
version = "1.3.0";
format = "pyproject";
src = fetchPypi {
inherit version pname;
sha256 = "sha256-695l8/a7lTGoEBbG/vPrlaYRga3Ee3+UnpwOpHkRZp4=";
};
nativeBuildInputs = [
hatchling
];
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 ];
};
}