uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
51
pkgs/development/python-modules/monero/default.nix
Normal file
51
pkgs/development/python-modules/monero/default.nix
Normal file
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue