504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
52 lines
1,023 B
Nix
52 lines
1,023 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pycryptodomex
|
|
, pysocks
|
|
, pynacl
|
|
, requests
|
|
, six
|
|
, varint
|
|
, pytestCheckHook
|
|
, pytest-cov
|
|
, responses
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "monero";
|
|
version = "1.1.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "monero-ecosystem";
|
|
repo = "monero-python";
|
|
rev = "v${version}";
|
|
hash = "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 ];
|
|
};
|
|
}
|