Files
nixpkgs/pkgs/development/python-modules/block-io/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

47 lines
1006 B
Nix

{
lib,
fetchPypi,
bitcoin-utils-fork-minimal,
buildPythonPackage,
base58,
pycryptodome,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "block-io";
version = "2.0.6";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-M7czfpagXqoWWSu4enB3Z2hc2GtAaskI6cnJzJdpC8I=";
};
build-system = [ setuptools ];
pythonRelaxDeps = [ "base58" ];
dependencies = [
base58
bitcoin-utils-fork-minimal
pycryptodome
requests
setuptools
];
# Tests needs a BlockIO API key to run properly
# https://github.com/BlockIo/block_io-python/blob/79006bc8974544b70a2d8e9f19c759941d32648e/test.py#L18
doCheck = false;
pythonImportsCheck = [ "block_io" ];
meta = {
description = "Integrate Bitcoin, Dogecoin and Litecoin in your Python applications using block.io";
homepage = "https://github.com/BlockIo/block_io-python";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ nyanloutre ];
};
}