Skip to content

Commit 86e9c72

Browse files
committed
Use better Python packaging practices
Previously unstable was failing to build with some diagnostic errors.
1 parent 7ed6004 commit 86e9c72

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

modules/pyhesiodfs.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ lib, pkgs, config, options,
2-
specialArgs, modulesPath,
2+
specialArgs, modulesPath, ...
33
}:
44
let
55
cfg = config.services.pyhesiodfs;

pkgs/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ in rec
1010
python-afs = ps: ps.callPackage ./python-afs.nix { };
1111
hesiod = pkgs.callPackage ./hesiod.nix { };
1212
python-hesiod = ps: ps.callPackage ./python-hesiod.nix { inherit hesiod; };
13-
locker-support = ps: ps.callPackage ./locker-support.nix { inherit python-afs python-hesiod; };
13+
locker-support = ps: ps.callPackage ./locker-support.nix {
14+
python-afs = (python-afs ps);
15+
python-hesiod = (python-hesiod ps);
16+
};
1417
pyhesiodfs = pkgs.callPackage ./pyhesiodfs.nix { inherit python-hesiod locker-support; };
1518
remctl = pkgs.callPackage ./remctl.nix { };
1619
moira = pkgs.callPackage ./moira.nix { inherit hesiod; };

pkgs/locker-support.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ in buildPythonPackage {
2323
];
2424

2525
dependencies = [
26-
(python-afs python3Packages)
27-
(python-hesiod python3Packages)
26+
python-afs
27+
python-hesiod
2828
];
2929

3030
buildInputs = [

pkgs/python-afs.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
{ stdenv, pkgs, lib, fetchFromGitHub, buildPythonPackage, setuptools, python3,
2-
openafs, libkrb5, }:
1+
{ stdenv, pkgs, lib, fetchFromGitHub,
2+
cython, buildPythonPackage, setuptools,
3+
openafs, libkrb5,
4+
}:
35

46
let
57
fs = lib.fileset;
@@ -24,7 +26,7 @@ in buildPythonPackage {
2426
];
2527

2628
nativeBuildInputs = [
27-
python3.pkgs.cython
29+
cython
2830
];
2931

3032
pythonImportsCheck = [

pkgs/python-hesiod.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ stdenv, pkgs, lib, fetchFromGitHub,
2-
python3Packages, buildPythonPackage, setuptools,
2+
cython, buildPythonPackage, setuptools,
33
hesiod,
44
}:
55

@@ -27,7 +27,7 @@ in buildPythonPackage {
2727
];
2828

2929
nativeBuildInputs = [
30-
python3Packages.cython
30+
cython
3131
];
3232

3333
pythonImportsCheck = [

0 commit comments

Comments
 (0)