Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pyhamcrest, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "base58"; 12 version = "2.1.1"; 13 format = "setuptools"; 14 disabled = pythonOlder "3.5"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "c5d0cb3f5b6e81e8e35da5754388ddcc6d0d14b6c6a132cb93d69ed580a7278c"; 19 }; 20 21 nativeCheckInputs = [ 22 pyhamcrest 23 pytestCheckHook 24 ]; 25 26 disabledTests = [ 27 # avoid dependency on pytest-benchmark 28 "test_decode_random" 29 "test_encode_random" 30 ]; 31 32 pythonImportsCheck = [ "base58" ]; 33 34 meta = with lib; { 35 description = "Base58 and Base58Check implementation"; 36 mainProgram = "base58"; 37 homepage = "https://github.com/keis/base58"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ nyanloutre ]; 40 }; 41}