1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "bytecode";
10 version = "0.13.0";
11 disabled = pythonOlder "3.6";
12
13 src = fetchFromGitHub {
14 owner = "vstinner";
15 repo = pname;
16 rev = version;
17 sha256 = "sha256-aY19qMYW7KziiXVY3lxdnHk7OCAJaNh+aTvlQyJWmDw=";
18 };
19
20 checkInputs = [
21 pytestCheckHook
22 ];
23
24 pythonImportsCheck = [ "bytecode" ];
25
26 meta = with lib; {
27 homepage = "https://github.com/vstinner/bytecode";
28 description = "Python module to generate and modify bytecode";
29 license = licenses.mit;
30 maintainers = with maintainers; [ raboof ];
31 };
32}