nixpkgs/pkgs/development/python-modules/monero/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

52 lines
1000 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pycryptodomex
, pysocks
, pynacl
, requests
, six
, varint
, pytestCheckHook
, pytest-cov
, responses
}:
buildPythonPackage rec {
pname = "monero";
version = "1.1.1";
src = fetchFromGitHub {
owner = "monero-ecosystem";
repo = "monero-python";
rev = "v${version}";
sha256 = "sha256-WIF3pFBOLgozYTrQHLzIRgSlT3dTZTe+7sF/dVjVdTo=";
};
postPatch = ''
substituteInPlace requirements.txt \
--replace 'pynacl~=1.4' 'pynacl>=1.4' \
--replace 'ipaddress' ""
'';
pythonImportsCheck = [ "monero" ];
propagatedBuildInputs = [
pycryptodomex
pynacl
pysocks
requests
six
varint
];
nativeCheckInputs = [ pytestCheckHook pytest-cov responses ];
meta = with lib; {
description = "Comprehensive Python module for handling Monero";
homepage = "https://github.com/monero-ecosystem/monero-python";
license = licenses.bsd3;
maintainers = with maintainers; [ prusnak ];
};
}