-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2baff27 update nixpkgs (Jonas Nick) Pull request description: ACKs for top commit: erikarvstedt: ACK 2baff27 Tree-SHA512: 511b9e8f11db497a8de50a4af019d44d592eeb0bcc5582380fb4162e2c7c1a617bc59b302e5869d887c8c13f491be62f44f89a13e62ec0aff9c273e5a433cedb
- Loading branch information
Showing
7 changed files
with
208 additions
and
27 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
87 changes: 87 additions & 0 deletions
87
pkgs/python-packages/specific-versions/coincurve_20/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# Copied from nixpkgs revision 673d99f1406cb09b8eb6feab4743ebdf70046557 | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchFromGitHub, | ||
|
||
# build-system | ||
cmake, | ||
hatchling, | ||
ninja, | ||
pkg-config, | ||
setuptools, | ||
scikit-build-core, | ||
|
||
# dependencies | ||
asn1crypto, | ||
cffi, | ||
secp256k1, | ||
|
||
# checks | ||
pytestCheckHook, | ||
pythonOlder, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "coincurve"; | ||
version = "20.0.0"; | ||
pyproject = true; | ||
|
||
disabled = pythonOlder "3.7"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "ofek"; | ||
repo = "coincurve"; | ||
rev = "refs/tags/v${version}"; | ||
hash = "sha256-NKx/iLuzFEu1UBuwa14x55Ab3laVAKEtX6dtoWi0dOg="; | ||
}; | ||
|
||
postPatch = '' | ||
# don't try to load .dll files | ||
cp -r --no-preserve=mode ${secp256k1.src} libsecp256k1 | ||
patchShebangs secp256k1/autogen.sh | ||
''; | ||
|
||
build-system = [ | ||
hatchling | ||
cffi | ||
cmake | ||
ninja | ||
pkg-config | ||
setuptools | ||
scikit-build-core | ||
]; | ||
|
||
dontUseCmakeConfigure = true; | ||
|
||
env.COINCURVE_IGNORE_SYSTEM_LIB = "OFF"; | ||
|
||
buildInputs = [ secp256k1 ]; | ||
|
||
dependencies = [ | ||
asn1crypto | ||
cffi | ||
]; | ||
|
||
preCheck = '' | ||
# https://github.com/ofek/coincurve/blob/master/tox.ini#L20-L22= | ||
rm -rf coincurve | ||
# don't run benchmark tests | ||
rm tests/test_bench.py | ||
''; | ||
|
||
nativeCheckInputs = [ pytestCheckHook ]; | ||
|
||
pythonImportsCheck = [ "coincurve" ]; | ||
|
||
meta = with lib; { | ||
description = "Cross-platform bindings for libsecp256k1"; | ||
homepage = "https://github.com/ofek/coincurve"; | ||
license = with licenses; [ | ||
asl20 | ||
mit | ||
]; | ||
maintainers = [ ]; | ||
}; | ||
} |
97 changes: 97 additions & 0 deletions
97
pkgs/python-packages/specific-versions/scikit-build-core_0_10/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
# Copied from nixpkgs revision 673d99f1406cb09b8eb6feab4743ebdf70046557 | ||
{ | ||
lib, | ||
buildPythonPackage, | ||
fetchFromGitHub, | ||
pythonOlder, | ||
|
||
# build-system | ||
hatch-vcs, | ||
hatchling, | ||
cmake, | ||
ninja, | ||
|
||
# dependencies | ||
packaging, | ||
pathspec, | ||
exceptiongroup, | ||
|
||
# tests | ||
build, | ||
cattrs, | ||
numpy, | ||
pybind11, | ||
pytest-subprocess, | ||
pytestCheckHook, | ||
setuptools, | ||
tomli, | ||
virtualenv, | ||
wheel, | ||
}: | ||
|
||
buildPythonPackage rec { | ||
pname = "scikit-build-core"; | ||
version = "0.10.5"; | ||
pyproject = true; | ||
|
||
src = fetchFromGitHub { | ||
owner = "scikit-build"; | ||
repo = "scikit-build-core"; | ||
rev = "refs/tags/v${version}"; | ||
hash = "sha256-hpwXEWPofgMT4ua2tZI1mtGbaBkT2XPBd6QL8xTi1A0="; | ||
}; | ||
|
||
postPatch = lib.optionalString (pythonOlder "3.11") '' | ||
substituteInPlace pyproject.toml \ | ||
--replace-fail '"error",' '"error", "ignore::UserWarning",' | ||
''; | ||
|
||
build-system = [ | ||
hatch-vcs | ||
hatchling | ||
]; | ||
|
||
dependencies = | ||
[ | ||
packaging | ||
pathspec | ||
] | ||
++ lib.optionals (pythonOlder "3.11") [ | ||
exceptiongroup | ||
tomli | ||
]; | ||
|
||
nativeCheckInputs = [ | ||
build | ||
cattrs | ||
cmake | ||
ninja | ||
numpy | ||
pybind11 | ||
pytest-subprocess | ||
pytestCheckHook | ||
setuptools | ||
virtualenv | ||
wheel | ||
]; | ||
|
||
# cmake is only used for tests | ||
dontUseCmakeConfigure = true; | ||
|
||
pytestFlagsArray = [ "-m 'not isolated and not network'" ]; | ||
|
||
disabledTestPaths = [ | ||
# store permissions issue in Nix: | ||
"tests/test_editable.py" | ||
]; | ||
|
||
pythonImportsCheck = [ "scikit_build_core" ]; | ||
|
||
meta = with lib; { | ||
description = "Next generation Python CMake adaptor and Python API for plugins"; | ||
homepage = "https://github.com/scikit-build/scikit-build-core"; | ||
changelog = "https://github.com/scikit-build/scikit-build-core/releases/tag/v${version}"; | ||
license = with licenses; [ asl20 ]; | ||
maintainers = with maintainers; [ veprbl ]; | ||
}; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.