Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 794 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, setuptools 6, unittestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "bitstring"; 11 version = "4.0.2"; 12 format = "pyproject"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "scott-griffiths"; 18 repo = pname; 19 rev = "bitstring-${version}"; 20 hash = "sha256-LghfDjf/Z1dEU0gjH1cqMb04ChnW+aGDjmN+RAhMWW8="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools 25 ]; 26 27 nativeCheckInputs = [ unittestCheckHook ]; 28 29 pythonImportsCheck = [ "bitstring" ]; 30 31 meta = with lib; { 32 description = "Module for binary data manipulation"; 33 homepage = "https://github.com/scott-griffiths/bitstring"; 34 license = licenses.mit; 35 platforms = platforms.unix; 36 maintainers = with maintainers; [ bjornfor ]; 37 }; 38}