Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 35 lines 943 B view raw
1{ stdenv, fetchPypi, buildPythonPackage, base58, ecdsa, pycryptodome, requests, six }: 2 3buildPythonPackage rec { 4 pname = "block-io"; 5 version = "1.1.10"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "ba2e750085d9da4d1567932f3f719974fdc3f02649ee0d5c2f85fce592208723"; 10 }; 11 12 propagatedBuildInputs = [ 13 base58 14 ecdsa 15 pycryptodome 16 requests 17 six 18 ]; 19 20 preConfigure = '' 21 substituteInPlace setup.py \ 22 --replace "ecdsa==0.13" "ecdsa>=0.13" 23 ''; 24 25 # Tests needs a BlockIO API key to run properly 26 # https://github.com/BlockIo/block_io-python/blob/79006bc8974544b70a2d8e9f19c759941d32648e/test.py#L18 27 doCheck = false; 28 29 meta = with stdenv.lib; { 30 description = "Integrate Bitcoin, Dogecoin and Litecoin in your Python applications using block.io"; 31 homepage = https://github.com/BlockIo/block_io-python; 32 license = licenses.mit; 33 maintainers = with maintainers; [ nyanloutre ]; 34 }; 35}