2023-04-29 16:46:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pytestCheckHook
|
2023-10-09 19:29:22 +00:00
|
|
|
, hatchling
|
2023-04-29 16:46:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "looseversion";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "1.3.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2023-08-04 22:07:22 +00:00
|
|
|
sha256 = "sha256-695l8/a7lTGoEBbG/vPrlaYRga3Ee3+UnpwOpHkRZp4=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|