- Add `doCheck = false` and `pythonImportsCheck` where appropriate. This is good practice in general, but specifically works around a `buildPythonPackage` bug where the test phase fails due to a requirements check that is unrelated to testing. - Enable tests for `jmbitcoin`. - Patch some requirements. I've checked the release notes of the required deps for backwards compatibility.
28 lines
755 B
Nix
28 lines
755 B
Nix
{ version, src, lib, buildPythonPackage, fetchurl, future, twisted, service-identity, chromalog, txtorcon, pyaes }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "joinmarketbase";
|
|
inherit version src;
|
|
|
|
postUnpack = "sourceRoot=$sourceRoot/jmbase";
|
|
|
|
propagatedBuildInputs = [ future twisted service-identity chromalog txtorcon pyaes ];
|
|
|
|
patchPhase = ''
|
|
sed -i 's|twisted==22.4.0|twisted==23.8.0|' setup.py
|
|
sed -i 's|service-identity==21.1.0|service-identity==23.1.0|' setup.py
|
|
'';
|
|
|
|
# Has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"jmbase"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/Joinmarket-Org/joinmarket-clientserver";
|
|
maintainers = with maintainers; [ nixbitcoin ];
|
|
license = licenses.gpl3;
|
|
};
|
|
}
|