depot/third_party/nixpkgs/pkgs/development/python-modules/pycardano/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

77 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pythonRelaxDepsHook,
# Python deps
blockfrost-python,
cachetools,
cbor2,
cose,
ecpy,
frozendict,
frozenlist,
mnemonic,
poetry-core,
pprintpp,
pynacl,
setuptools,
typeguard,
websocket-client,
}:
let
cose_0_9_dev8 = cose.overridePythonAttrs (old: rec {
version = "0.9.dev8";
src = (
old.src.override {
rev = "v${version}";
hash = "sha256-/jwq2C2nvHInsgPG4jZCr+XsvlUJdYewAkasrUPVaHM=";
}
);
pythonImportsCheck = [ "cose" ];
});
in
buildPythonPackage rec {
pname = "pycardano";
version = "0.10.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "Python-Cardano";
repo = "pycardano";
rev = "v${version}";
hash = "sha256-LP/W8IC2del476fGFq10VMWwMrbAoCCcZOngA8unBM0=";
};
nativeBuildInputs = [ pythonRelaxDepsHook ];
propagatedBuildInputs = [
blockfrost-python
cachetools
cbor2
cose_0_9_dev8
ecpy
frozendict
frozenlist
mnemonic
poetry-core
pprintpp
pynacl
setuptools
typeguard
websocket-client
];
pythonRelaxDeps = [ "typeguard" ];
pythonImportsCheck = [ "pycardano" ];
meta = with lib; {
description = "Lightweight Cardano library in Python";
homepage = "https://github.com/Python-Cardano/pycardano";
license = licenses.mit;
maintainers = with maintainers; [ t4ccer ];
};
}