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