nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 962 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 liberasurecode, 6 pytestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "pyeclib"; 12 version = "1.7.0"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "openstack"; 17 repo = "pyeclib"; 18 tag = version; 19 hash = "sha256-wYzZUtr80KgVTznD0ISy7qhGngm4Xmt8Mauu9lP+2T4="; 20 }; 21 22 build-system = [ 23 setuptools 24 ]; 25 26 buildInputs = [ liberasurecode ]; 27 28 nativeCheckInputs = [ 29 pytestCheckHook 30 ]; 31 32 disabledTests = [ 33 # The memory usage goes *down* on Darwin, which the test confuses for an increase and fails 34 "test_get_metadata_memory_usage" 35 ]; 36 37 pythonImportsCheck = [ "pyeclib" ]; 38 39 meta = { 40 description = "This library provides a simple Python interface for implementing erasure codes"; 41 homepage = "https://github.com/openstack/pyeclib"; 42 license = lib.licenses.bsd2; 43 mainProgram = "pyeclib-backend"; 44 teams = [ lib.teams.openstack ]; 45 }; 46}