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