1a04744f74
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
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cbor2,
|
|
coincurve,
|
|
crcmod,
|
|
ecdsa,
|
|
ed25519-blake2b,
|
|
fetchFromGitHub,
|
|
py-sr25519-bindings,
|
|
pycryptodome,
|
|
pynacl,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bip-utils";
|
|
version = "2.9.3";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ebellocchia";
|
|
repo = "bip_utils";
|
|
tag = "v${version}";
|
|
hash = "sha256-3G37n/mfI+3JVIkmJWzbB1qPPTE6NJJlFZWdE0fIIWA=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
ecdsa
|
|
cbor2
|
|
pynacl
|
|
coincurve
|
|
crcmod
|
|
ed25519-blake2b
|
|
py-sr25519-bindings
|
|
pycryptodome
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "bip_utils" ];
|
|
|
|
meta = {
|
|
description = "Implementation of BIP39, BIP32, BIP44, BIP49 and BIP84 for wallet seeds, keys and addresses generation";
|
|
homepage = "https://github.com/ebellocchia/bip_utils";
|
|
changelog = "https://github.com/ebellocchia/bip_utils/blob/v${version}/CHANGELOG.md";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [
|
|
prusnak
|
|
stargate01
|
|
];
|
|
};
|
|
}
|