1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 bitarray, 7 setuptools, 8 unittestCheckHook, 9}: 10 11buildPythonPackage rec { 12 pname = "bitstring"; 13 version = "4.1.4"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "scott-griffiths"; 20 repo = pname; 21 rev = "refs/tags/bitstring-${version}"; 22 hash = "sha256-CO7R2SCb232OW1DCLo45UIarFG5FhR4WkwuQieXha0Y="; 23 }; 24 25 nativeBuildInputs = [ setuptools ]; 26 27 propagatedBuildInputs = [ bitarray ]; 28 29 nativeCheckInputs = [ unittestCheckHook ]; 30 31 pythonImportsCheck = [ "bitstring" ]; 32 33 meta = with lib; { 34 description = "Module for binary data manipulation"; 35 homepage = "https://github.com/scott-griffiths/bitstring"; 36 license = licenses.mit; 37 platforms = platforms.unix; 38 maintainers = with maintainers; [ bjornfor ]; 39 }; 40}