python3Packages.monero: init at 1.0.1
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pycryptodomex
|
||||
, pysocks
|
||||
, pynacl
|
||||
, requests
|
||||
, six
|
||||
, varint
|
||||
, pytestCheckHook
|
||||
, pytest-cov
|
||||
, responses
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "monero";
|
||||
version = "1.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "monero-ecosystem";
|
||||
repo = "monero-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-ZjAShIeGVVIKlwgSNPVSN7eaqhKu3wEpDP9wgBMOyZU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace requirements.txt \
|
||||
--replace 'pynacl~=1.4' 'pynacl>=1.4' \
|
||||
--replace 'ipaddress' ""
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "monero" ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pycryptodomex
|
||||
pynacl
|
||||
pysocks
|
||||
requests
|
||||
six
|
||||
varint
|
||||
];
|
||||
|
||||
checkInputs = [ 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 ];
|
||||
};
|
||||
}
|
||||
@@ -5241,6 +5241,8 @@ in {
|
||||
|
||||
mohawk = callPackage ../development/python-modules/mohawk { };
|
||||
|
||||
monero = callPackage ../development/python-modules/monero { };
|
||||
|
||||
mongomock = callPackage ../development/python-modules/mongomock { };
|
||||
|
||||
mongodict = callPackage ../development/python-modules/mongodict { };
|
||||
|
||||
Reference in New Issue
Block a user