Skip to content

Commit 3993d27

Browse files
committed
Fix Nix builds: force use of pyproject, fix pynrfjprog dependency spec
1 parent a514e81 commit 3993d27

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

default.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ in pkgs.python3Packages.buildPythonPackage rec {
7979
in elemAt (match pattern (readFile ./tockloader/_version.py)) 0;
8080
name = "${pname}-${version}";
8181

82+
pyproject = true;
83+
84+
nativeBuildInputs = with python3Packages; [
85+
flit
86+
];
87+
8288
propagatedBuildInputs = with python3Packages; [
8389
argcomplete
8490
colorama

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies = [
1616
"crcmod >= 1.7",
1717
"ecdsa >= 0.19.1",
1818
"pycryptodome >= 3.15.0",
19-
"pynrfjprog == 10.19.0",
19+
"pynrfjprog >= 10.19.0",
2020
"pyserial >= 3.0.1",
2121
"siphash >= 0.0.1",
2222
"six >= 1.9.0",

0 commit comments

Comments
 (0)