1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pycryptodomex,
6 pysocks,
7 pynacl,
8 requests,
9 six,
10 varint,
11 pytestCheckHook,
12 pytest-cov-stub,
13 responses,
14}:
15
16buildPythonPackage rec {
17 pname = "monero";
18 version = "1.1.1";
19 format = "setuptools";
20
21 src = fetchFromGitHub {
22 owner = "monero-ecosystem";
23 repo = "monero-python";
24 rev = "v${version}";
25 hash = "sha256-WIF3pFBOLgozYTrQHLzIRgSlT3dTZTe+7sF/dVjVdTo=";
26 };
27
28 pythonRelaxDeps = [ "pynacl" ];
29 pythonRemoveDeps = [ "ipaddress" ];
30
31 pythonImportsCheck = [ "monero" ];
32
33 propagatedBuildInputs = [
34 pycryptodomex
35 pynacl
36 pysocks
37 requests
38 six
39 varint
40 ];
41
42 nativeCheckInputs = [
43 pytestCheckHook
44 pytest-cov-stub
45 responses
46 ];
47
48 meta = with lib; {
49 description = "Comprehensive Python module for handling Monero";
50 homepage = "https://github.com/monero-ecosystem/monero-python";
51 license = licenses.bsd3;
52 maintainers = with maintainers; [ prusnak ];
53 };
54}