1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "looseversion";
12 version = "1.3.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 inherit version pname;
19 hash = "sha256-695l8/a7lTGoEBbG/vPrlaYRga3Ee3+UnpwOpHkRZp4=";
20 };
21
22 build-system = [ hatchling ];
23
24 nativeCheckInputs = [ pytestCheckHook ];
25
26 enabledTestPaths = [ "tests.py" ];
27
28 pythonImportsCheck = [ "looseversion" ];
29
30 meta = with lib; {
31 description = "Version numbering for anarchists and software realists";
32 homepage = "https://github.com/effigies/looseversion";
33 changelog = "https://github.com/effigies/looseversion/blob/${version}/CHANGES.md";
34 license = licenses.psfl;
35 maintainers = with maintainers; [ pelme ];
36 };
37}