biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / monero / default.nix
bloba0ef05cb3b05222725cdfb8c1e254b5e4d2cfc8e
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pycryptodomex,
6   pysocks,
7   pynacl,
8   requests,
9   six,
10   varint,
11   pytestCheckHook,
12   pytest-cov,
13   responses,
16 buildPythonPackage rec {
17   pname = "monero";
18   version = "1.1.1";
19   format = "setuptools";
21   src = fetchFromGitHub {
22     owner = "monero-ecosystem";
23     repo = "monero-python";
24     rev = "v${version}";
25     hash = "sha256-WIF3pFBOLgozYTrQHLzIRgSlT3dTZTe+7sF/dVjVdTo=";
26   };
28   postPatch = ''
29     substituteInPlace requirements.txt \
30       --replace 'pynacl~=1.4' 'pynacl>=1.4' \
31       --replace 'ipaddress' ""
32   '';
34   pythonImportsCheck = [ "monero" ];
36   propagatedBuildInputs = [
37     pycryptodomex
38     pynacl
39     pysocks
40     requests
41     six
42     varint
43   ];
45   nativeCheckInputs = [
46     pytestCheckHook
47     pytest-cov
48     responses
49   ];
51   meta = with lib; {
52     description = "Comprehensive Python module for handling Monero";
53     homepage = "https://github.com/monero-ecosystem/monero-python";
54     license = licenses.bsd3;
55     maintainers = with maintainers; [ prusnak ];
56   };