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