python-packages: add workaround to reenable requirements checking
This commit is contained in:
parent
dc1033f1c8
commit
1c07c5fa5c
|
@ -1,6 +1,6 @@
|
|||
{ lib, buildPythonPackage, fetchurl, cython, pytest, coverage }:
|
||||
{ lib, buildPythonPackageWithDepsCheck, fetchurl, cython, pytest, coverage }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackageWithDepsCheck rec {
|
||||
pname = "bencoder.pyx";
|
||||
version = "3.0.1";
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, colorama, future, six }:
|
||||
buildPythonPackage rec {
|
||||
{ lib, buildPythonPackageWithDepsCheck, fetchFromGitHub, colorama, future, six }:
|
||||
buildPythonPackageWithDepsCheck rec {
|
||||
pname = "chromalog";
|
||||
version = "1.0.5";
|
||||
|
||||
|
|
|
@ -46,6 +46,17 @@ rec {
|
|||
|
||||
# autobahn 20.12.3, required by joinmarketclient
|
||||
autobahn = callPackage ./specific-versions/autobahn.nix {};
|
||||
|
||||
# A version of `buildPythonPackage` which checks that Python package
|
||||
# requirements are met.
|
||||
# This was the case for NixOS <= 23.05.
|
||||
# TODO-EXTERNAL: Remove when this is resolved:
|
||||
# https://github.com/NixOS/nixpkgs/issues/253131
|
||||
buildPythonPackageWithDepsCheck = attrs:
|
||||
self.buildPythonPackage (attrs // {
|
||||
dontUsePypaInstall = true;
|
||||
nativeBuildInputs = (attrs.nativeBuildInputs or []) ++ [ self.pipInstallHook ];
|
||||
});
|
||||
};
|
||||
|
||||
nbPython3Packages = (python3.override {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ version, src, lib, buildPythonPackage, fetchurl, future, twisted, service-identity, chromalog, txtorcon, pyaes }:
|
||||
{ version, src, lib, buildPythonPackageWithDepsCheck, fetchurl, future, twisted, service-identity, chromalog, txtorcon, pyaes }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackageWithDepsCheck rec {
|
||||
pname = "joinmarketbase";
|
||||
inherit version src;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ version, src, lib, buildPythonPackage, fetchurl, python-bitcointx, joinmarketbase }:
|
||||
{ version, src, lib, buildPythonPackageWithDepsCheck, fetchurl, python-bitcointx, joinmarketbase, pytestCheckHook }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackageWithDepsCheck rec {
|
||||
pname = "joinmarketbitcoin";
|
||||
inherit version src;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
, version
|
||||
, src
|
||||
, lib
|
||||
, buildPythonPackage
|
||||
, buildPythonPackageWithDepsCheck
|
||||
, argon2_cffi
|
||||
, autobahn
|
||||
, bencoderpyx
|
||||
|
@ -19,7 +19,7 @@
|
|||
, werkzeug
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackageWithDepsCheck rec {
|
||||
pname = "joinmarketclient";
|
||||
inherit version src;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ version, src, lib, buildPythonPackage, fetchurl, txtorcon, cryptography, pyopenssl, libnacl, joinmarketbase }:
|
||||
{ version, src, lib, buildPythonPackageWithDepsCheck, fetchurl, txtorcon, cryptography, pyopenssl, libnacl, joinmarketbase }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackageWithDepsCheck rec {
|
||||
pname = "joinmarketdaemon";
|
||||
inherit version src;
|
||||
|
||||
|
@ -23,6 +23,7 @@ buildPythonPackage rec {
|
|||
pythonImportsCheck = [
|
||||
"jmdaemon"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Client library for Bitcoin coinjoins";
|
||||
homepage = "https://github.com/Joinmarket-Org/joinmarket-clientserver";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ buildPythonPackage, clightning, pyln-client }:
|
||||
{ buildPythonPackageWithDepsCheck, clightning, pyln-client }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackageWithDepsCheck rec {
|
||||
pname = "pylightning";
|
||||
version = "0.10.1"; # defined in ${src}/contrib/pyln-client/pyln/client/__init__.py
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ buildPythonPackage, poetry-core, pytestCheckHook, clightning, pyln-proto }:
|
||||
{ buildPythonPackageWithDepsCheck, poetry-core, pytestCheckHook, clightning, pyln-proto }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackageWithDepsCheck rec {
|
||||
pname = "pyln-bolt7";
|
||||
# The version is defined here:
|
||||
# https://github.com/ElementsProject/lightning/blob/master/contrib/pyln-spec/bolt7/pyproject.toml
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ buildPythonPackage, poetry-core, pytestCheckHook, clightning, pyln-bolt7, pyln-proto }:
|
||||
{ buildPythonPackageWithDepsCheck, poetry-core, pytestCheckHook, clightning, pyln-bolt7, pyln-proto }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackageWithDepsCheck rec {
|
||||
pname = "pyln-client";
|
||||
version = clightning.version;
|
||||
format = "pyproject";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{ buildPythonPackage
|
||||
{ buildPythonPackageWithDepsCheck
|
||||
, clightning
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
|
@ -9,7 +9,7 @@
|
|||
, pysocks
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackageWithDepsCheck rec {
|
||||
pname = "pyln-proto";
|
||||
version = clightning.version;
|
||||
format = "pyproject";
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ lib, buildPythonPackage, fetchurl, secp256k1, openssl }:
|
||||
{ lib, buildPythonPackageWithDepsCheck, fetchurl, secp256k1, openssl }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackageWithDepsCheck rec {
|
||||
pname = "python-bitcointx";
|
||||
version = "1.1.3";
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ sha256, lib, buildPythonPackage, fetchFromGitHub }:
|
||||
{ sha256, lib, buildPythonPackageWithDepsCheck, fetchFromGitHub }:
|
||||
|
||||
buildPythonPackage {
|
||||
buildPythonPackageWithDepsCheck {
|
||||
pname = "runes";
|
||||
version = "0.4.0";
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, cython }:
|
||||
{ lib, buildPythonPackageWithDepsCheck, fetchFromGitHub, cython }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackageWithDepsCheck rec {
|
||||
pname = "sha256";
|
||||
version = builtins.substring 0 8 src.rev;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user