Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / monero / default.nix
blobadc34fa17360d927314c470fad2769b521e081aa
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
15 buildPythonPackage rec {
16   pname = "monero";
17   version = "1.1.1";
19   src = fetchFromGitHub {
20     owner = "monero-ecosystem";
21     repo = "monero-python";
22     rev = "v${version}";
23     hash = "sha256-WIF3pFBOLgozYTrQHLzIRgSlT3dTZTe+7sF/dVjVdTo=";
24   };
26   postPatch = ''
27     substituteInPlace requirements.txt \
28       --replace 'pynacl~=1.4' 'pynacl>=1.4' \
29       --replace 'ipaddress' ""
30   '';
32   pythonImportsCheck = [ "monero" ];
34   propagatedBuildInputs = [
35     pycryptodomex
36     pynacl
37     pysocks
38     requests
39     six
40     varint
41   ];
43   nativeCheckInputs = [ pytestCheckHook pytest-cov responses ];
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   };