1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromSourcehut,
6 kubo,
7 packaging,
8 tomli,
9 flit-core,
10}:
11
12buildPythonPackage rec {
13 pname = "ipwhl";
14 version = "1.1.0";
15 format = "pyproject";
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromSourcehut {
19 owner = "~cnx";
20 repo = "ipwhl-utils";
21 rev = version;
22 hash = "sha256-YaIYcoUnbiv9wUOFIzGj2sWGbh7NsqRQcqOR2X6+QZA=";
23 };
24
25 nativeBuildInputs = [ flit-core ];
26 buildInputs = [ kubo ];
27 propagatedBuildInputs = [
28 packaging
29 tomli
30 ];
31 doCheck = false; # there's no test
32 pythonImportsCheck = [ "ipwhl" ];
33
34 meta = with lib; {
35 description = "Utilities for the InterPlanetary Wheels";
36 homepage = "https://git.sr.ht/~cnx/ipwhl-utils";
37 license = licenses.agpl3Plus;
38 maintainers = [ maintainers.McSinyx ];
39 };
40}