Files
nixpkgs/pkgs/development/python-modules/monero/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

55 lines
990 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pycryptodomex,
pysocks,
pynacl,
requests,
six,
varint,
pytestCheckHook,
pytest-cov-stub,
responses,
}:
buildPythonPackage rec {
pname = "monero";
version = "1.1.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "monero-ecosystem";
repo = "monero-python";
rev = "v${version}";
hash = "sha256-WIF3pFBOLgozYTrQHLzIRgSlT3dTZTe+7sF/dVjVdTo=";
};
pythonRelaxDeps = [ "pynacl" ];
pythonRemoveDeps = [ "ipaddress" ];
pythonImportsCheck = [ "monero" ];
propagatedBuildInputs = [
pycryptodomex
pynacl
pysocks
requests
six
varint
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
responses
];
meta = {
description = "Comprehensive Python module for handling Monero";
homepage = "https://github.com/monero-ecosystem/monero-python";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ prusnak ];
};
}