Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pytestCheckHook, 7 setuptools-scm, 8}: 9 10buildPythonPackage rec { 11 pname = "bytecode"; 12 version = "0.15.1"; 13 format = "pyproject"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "vstinner"; 18 repo = pname; 19 rev = "refs/tags/${version}"; 20 hash = "sha256-Jzsh0m00SiJjTP7hXMDmuR4XHmsCYdURuFDkVopGyIE="; 21 }; 22 23 nativeBuildInputs = [ setuptools-scm ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 pythonImportsCheck = [ "bytecode" ]; 28 29 meta = with lib; { 30 homepage = "https://github.com/vstinner/bytecode"; 31 description = "Python module to generate and modify bytecode"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ raboof ]; 34 }; 35}