nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 35 lines 770 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 future, 6}: 7 8buildPythonPackage rec { 9 pname = "blockchain"; 10 version = "1.4.4"; 11 format = "setuptools"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "1qpbmz6dk5gx1996dswpipwhj6sp5j0dlfap012l46zqnvmkxanv"; 16 }; 17 18 postPatch = '' 19 substituteInPlace setup.py --replace "enum-compat" "" 20 ''; 21 22 propagatedBuildInputs = [ future ]; 23 24 # tests are interacting with the API and not mocking the calls 25 doCheck = false; 26 27 pythonImportsCheck = [ "blockchain" ]; 28 29 meta = { 30 description = "Python client Blockchain Bitcoin Developer API"; 31 homepage = "https://github.com/blockchain/api-v1-client-python"; 32 license = with lib.licenses; [ mit ]; 33 maintainers = with lib.maintainers; [ fab ]; 34 }; 35}