diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-02 11:30:23 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-02 11:30:23 +0100 |
commit | 83234f7375b3771ffd4605fe870488c6db550fcd (patch) | |
tree | 6620cc382666f78ad94f6e853895f1dee99f1c37 /pkgs/development/python-modules/blockchain | |
parent | a8040c700ab2c08b2437d65dac7dbabc77f6b014 (diff) |
python3Packages.blockchain: init at 1.4.4
Diffstat (limited to 'pkgs/development/python-modules/blockchain')
-rw-r--r-- | pkgs/development/python-modules/blockchain/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/blockchain/default.nix b/pkgs/development/python-modules/blockchain/default.nix new file mode 100644 index 0000000000000..e6d523c3c7b89 --- /dev/null +++ b/pkgs/development/python-modules/blockchain/default.nix @@ -0,0 +1,35 @@ +{ lib +, buildPythonPackage +, fetchPypi +, future +}: + +buildPythonPackage rec { + pname = "blockchain"; + version = "1.4.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "1qpbmz6dk5gx1996dswpipwhj6sp5j0dlfap012l46zqnvmkxanv"; + }; + + postPatch = '' + substituteInPlace setup.py --replace "enum-compat" "" + ''; + + propagatedBuildInputs = [ + future + ]; + + # tests are interacting with the API and not mocking the calls + doCheck = false; + + pythonImportsCheck = [ "blockchain" ]; + + meta = with lib; { + description = "Python client Blockchain Bitcoin Developer API"; + homepage = "https://github.com/blockchain/api-v1-client-python"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} |