2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
hatchling,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2023-04-29 16:46:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "looseversion";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "1.3.0";
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit version pname;
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-695l8/a7lTGoEBbG/vPrlaYRga3Ee3+UnpwOpHkRZp4=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
build-system = [ hatchling ];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
pytestFlagsArray = [ "tests.py" ];
|
2024-06-05 15:53:02 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
pythonImportsCheck = [ "looseversion" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Version numbering for anarchists and software realists";
|
|
|
|
homepage = "https://github.com/effigies/looseversion";
|
2024-06-05 15:53:02 +00:00
|
|
|
changelog = "https://github.com/effigies/looseversion/blob/${version}/CHANGES.md";
|
2023-04-29 16:46:19 +00:00
|
|
|
license = licenses.psfl;
|
|
|
|
maintainers = with maintainers; [ pelme ];
|
|
|
|
};
|
|
|
|
}
|