Skip to content

Commit 548f17d

Browse files
committed
Merge #735: update nixpkgs
2baff27 update nixpkgs (Jonas Nick) Pull request description: ACKs for top commit: erikarvstedt: ACK 2baff27 Tree-SHA512: 511b9e8f11db497a8de50a4af019d44d592eeb0bcc5582380fb4162e2c7c1a617bc59b302e5869d887c8c13f491be62f44f89a13e62ec0aff9c273e5a433cedb
2 parents 901f125 + 2baff27 commit 548f17d

File tree

7 files changed

+208
-27
lines changed

7 files changed

+208
-27
lines changed

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/pinned.nix

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ pkgs: pkgsUnstable:
44
inherit (pkgs)
55
bitcoin
66
bitcoind
7-
btcpayserver
87
charge-lnd
9-
clightning
108
electrs
119
elementsd
1210
extra-container
1311
hwi
1412
lightning-loop
1513
lightning-pool
16-
lndconnect
17-
nbxplorer;
14+
lndconnect;
1815

1916
inherit (pkgsUnstable)
17+
btcpayserver
2018
clboss
19+
clightning
2120
fulcrum
22-
lnd;
21+
lnd
22+
nbxplorer;
2323

2424
inherit pkgs pkgsUnstable;
2525
}

pkgs/python-packages/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ rec {
66
in
77
{
88
txzmq = callPackage ./txzmq {};
9-
109
pyln-client = clightningPkg ./pyln-client;
1110
pyln-proto = clightningPkg ./pyln-proto;
1211
pyln-bolt7 = clightningPkg ./pyln-bolt7;
@@ -25,6 +24,10 @@ rec {
2524

2625
# autobahn 20.12.3, required by joinmarketclient
2726
autobahn = callPackage ./specific-versions/autobahn.nix {};
27+
# coincurve 20, required by pyln-proto.
28+
coincurve = callPackage ./specific-versions/coincurve_20 {};
29+
# scikit-build-core 0_10, required by coincurve.
30+
scikit-build-core = callPackage ./specific-versions/scikit-build-core_0_10 {};
2831
};
2932

3033
nbPython3Packages = (python3.override {

pkgs/python-packages/pyln-proto/default.nix

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,4 @@ buildPythonPackage rec {
2929
checkInputs = [ pytestCheckHook ];
3030

3131
postUnpack = "sourceRoot=$sourceRoot/contrib/pyln-proto";
32-
33-
postPatch = ''
34-
substituteInPlace pyproject.toml \
35-
--replace-fail 'coincurve = "^18"' 'coincurve = "^19"' \
36-
--replace-fail 'cryptography = "^41"' 'cryptography = "^42"' \
37-
'';
3832
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Copied from nixpkgs revision 673d99f1406cb09b8eb6feab4743ebdf70046557
2+
{
3+
lib,
4+
buildPythonPackage,
5+
fetchFromGitHub,
6+
7+
# build-system
8+
cmake,
9+
hatchling,
10+
ninja,
11+
pkg-config,
12+
setuptools,
13+
scikit-build-core,
14+
15+
# dependencies
16+
asn1crypto,
17+
cffi,
18+
secp256k1,
19+
20+
# checks
21+
pytestCheckHook,
22+
pythonOlder,
23+
}:
24+
25+
buildPythonPackage rec {
26+
pname = "coincurve";
27+
version = "20.0.0";
28+
pyproject = true;
29+
30+
disabled = pythonOlder "3.7";
31+
32+
src = fetchFromGitHub {
33+
owner = "ofek";
34+
repo = "coincurve";
35+
rev = "refs/tags/v${version}";
36+
hash = "sha256-NKx/iLuzFEu1UBuwa14x55Ab3laVAKEtX6dtoWi0dOg=";
37+
};
38+
39+
postPatch = ''
40+
# don't try to load .dll files
41+
cp -r --no-preserve=mode ${secp256k1.src} libsecp256k1
42+
patchShebangs secp256k1/autogen.sh
43+
'';
44+
45+
build-system = [
46+
hatchling
47+
cffi
48+
cmake
49+
ninja
50+
pkg-config
51+
setuptools
52+
scikit-build-core
53+
];
54+
55+
dontUseCmakeConfigure = true;
56+
57+
env.COINCURVE_IGNORE_SYSTEM_LIB = "OFF";
58+
59+
buildInputs = [ secp256k1 ];
60+
61+
dependencies = [
62+
asn1crypto
63+
cffi
64+
];
65+
66+
preCheck = ''
67+
# https://github.com/ofek/coincurve/blob/master/tox.ini#L20-L22=
68+
rm -rf coincurve
69+
70+
# don't run benchmark tests
71+
rm tests/test_bench.py
72+
'';
73+
74+
nativeCheckInputs = [ pytestCheckHook ];
75+
76+
pythonImportsCheck = [ "coincurve" ];
77+
78+
meta = with lib; {
79+
description = "Cross-platform bindings for libsecp256k1";
80+
homepage = "https://github.com/ofek/coincurve";
81+
license = with licenses; [
82+
asl20
83+
mit
84+
];
85+
maintainers = [ ];
86+
};
87+
}
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
# Copied from nixpkgs revision 673d99f1406cb09b8eb6feab4743ebdf70046557
2+
{
3+
lib,
4+
buildPythonPackage,
5+
fetchFromGitHub,
6+
pythonOlder,
7+
8+
# build-system
9+
hatch-vcs,
10+
hatchling,
11+
cmake,
12+
ninja,
13+
14+
# dependencies
15+
packaging,
16+
pathspec,
17+
exceptiongroup,
18+
19+
# tests
20+
build,
21+
cattrs,
22+
numpy,
23+
pybind11,
24+
pytest-subprocess,
25+
pytestCheckHook,
26+
setuptools,
27+
tomli,
28+
virtualenv,
29+
wheel,
30+
}:
31+
32+
buildPythonPackage rec {
33+
pname = "scikit-build-core";
34+
version = "0.10.5";
35+
pyproject = true;
36+
37+
src = fetchFromGitHub {
38+
owner = "scikit-build";
39+
repo = "scikit-build-core";
40+
rev = "refs/tags/v${version}";
41+
hash = "sha256-hpwXEWPofgMT4ua2tZI1mtGbaBkT2XPBd6QL8xTi1A0=";
42+
};
43+
44+
postPatch = lib.optionalString (pythonOlder "3.11") ''
45+
substituteInPlace pyproject.toml \
46+
--replace-fail '"error",' '"error", "ignore::UserWarning",'
47+
'';
48+
49+
build-system = [
50+
hatch-vcs
51+
hatchling
52+
];
53+
54+
dependencies =
55+
[
56+
packaging
57+
pathspec
58+
]
59+
++ lib.optionals (pythonOlder "3.11") [
60+
exceptiongroup
61+
tomli
62+
];
63+
64+
nativeCheckInputs = [
65+
build
66+
cattrs
67+
cmake
68+
ninja
69+
numpy
70+
pybind11
71+
pytest-subprocess
72+
pytestCheckHook
73+
setuptools
74+
virtualenv
75+
wheel
76+
];
77+
78+
# cmake is only used for tests
79+
dontUseCmakeConfigure = true;
80+
81+
pytestFlagsArray = [ "-m 'not isolated and not network'" ];
82+
83+
disabledTestPaths = [
84+
# store permissions issue in Nix:
85+
"tests/test_editable.py"
86+
];
87+
88+
pythonImportsCheck = [ "scikit_build_core" ];
89+
90+
meta = with lib; {
91+
description = "Next generation Python CMake adaptor and Python API for plugins";
92+
homepage = "https://github.com/scikit-build/scikit-build-core";
93+
changelog = "https://github.com/scikit-build/scikit-build-core/releases/tag/v${version}";
94+
license = with licenses; [ asl20 ];
95+
maintainers = with maintainers; [ veprbl ];
96+
};
97+
}

test/nixos-search/flake.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)