1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 wheel, 7 parts, 8 pytestCheckHook, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "bitlist"; 14 version = "1.2.0"; 15 format = "pyproject"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-+/rBno+OH7yEiN4K9VC6BCEPuOv8nNp0hU+fWegjqPw="; 22 }; 23 24 postPatch = '' 25 substituteInPlace pyproject.toml \ 26 --replace '--cov=bitlist --cov-report term-missing' "" 27 ''; 28 29 nativeBuildInputs = [ 30 setuptools 31 wheel 32 ]; 33 34 propagatedBuildInputs = [ parts ]; 35 36 nativeCheckInputs = [ pytestCheckHook ]; 37 38 pythonImportsCheck = [ "bitlist" ]; 39 40 meta = with lib; { 41 description = "Python library for working with little-endian list representation of bit strings"; 42 homepage = "https://github.com/lapets/bitlist"; 43 license = with licenses; [ mit ]; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}