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