2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pycryptodomex
|
|
|
|
, pysocks
|
|
|
|
, pynacl
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, varint
|
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-cov
|
|
|
|
, responses
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "monero";
|
2022-11-27 09:42:12 +00:00
|
|
|
version = "1.1.1";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "monero-ecosystem";
|
|
|
|
repo = "monero-python";
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-WIF3pFBOLgozYTrQHLzIRgSlT3dTZTe+7sF/dVjVdTo=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace requirements.txt \
|
|
|
|
--replace 'pynacl~=1.4' 'pynacl>=1.4' \
|
|
|
|
--replace 'ipaddress' ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "monero" ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pycryptodomex
|
|
|
|
pynacl
|
|
|
|
pysocks
|
|
|
|
requests
|
|
|
|
six
|
|
|
|
varint
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook pytest-cov responses ];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|