Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 998 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pycryptodomex 5, pysocks 6, pynacl 7, requests 8, six 9, varint 10, pytestCheckHook 11, pytest-cov 12, responses 13}: 14 15buildPythonPackage rec { 16 pname = "monero"; 17 version = "1.1.1"; 18 19 src = fetchFromGitHub { 20 owner = "monero-ecosystem"; 21 repo = "monero-python"; 22 rev = "v${version}"; 23 hash = "sha256-WIF3pFBOLgozYTrQHLzIRgSlT3dTZTe+7sF/dVjVdTo="; 24 }; 25 26 postPatch = '' 27 substituteInPlace requirements.txt \ 28 --replace 'pynacl~=1.4' 'pynacl>=1.4' \ 29 --replace 'ipaddress' "" 30 ''; 31 32 pythonImportsCheck = [ "monero" ]; 33 34 propagatedBuildInputs = [ 35 pycryptodomex 36 pynacl 37 pysocks 38 requests 39 six 40 varint 41 ]; 42 43 nativeCheckInputs = [ pytestCheckHook pytest-cov responses ]; 44 45 meta = with lib; { 46 description = "Comprehensive Python module for handling Monero"; 47 homepage = "https://github.com/monero-ecosystem/monero-python"; 48 license = licenses.bsd3; 49 maintainers = with maintainers; [ prusnak ]; 50 }; 51}