1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 pytestCheckHook,
7 setuptools-scm,
8}:
9
10buildPythonPackage rec {
11 pname = "bytecode";
12 version = "0.17.0";
13 format = "pyproject";
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "vstinner";
18 repo = "bytecode";
19 tag = version;
20 hash = "sha256-AocS5Z4WkHTR+nO5/4B7oV/fb/ASG0aGrG/722Ioup0=";
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}