Files
nixpkgs/pkgs/development/python-modules/bitcoin-utils-fork-minimal/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

45 lines
883 B
Nix

{
lib,
base58,
buildPythonPackage,
ecdsa,
fetchPypi,
sympy,
}:
buildPythonPackage rec {
pname = "bitcoin-utils-fork-minimal";
version = "0.4.11.6";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-DzibvC8qr/5ync59cfFB7tBmZWkPs/hKh+e5OC4lcEw=";
};
propagatedBuildInputs = [
base58
ecdsa
sympy
];
preConfigure = ''
substituteInPlace setup.py \
--replace "sympy==1.3" "sympy>=1.3" \
--replace "base58==2.1.0" "base58>=2.1.0" \
--replace "ecdsa==0.17.0" "ecdsa>=0.17.0"
'';
# Project doesn't ship tests
doCheck = false;
pythonImportsCheck = [ "bitcoinutils" ];
meta = {
description = "Bitcoin utility functions";
homepage = "https://github.com/doersf/python-bitcoin-utils";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}