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