nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools-scm,
7}:
8
9buildPythonPackage rec {
10 pname = "bytecode";
11 version = "0.17.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "vstinner";
16 repo = "bytecode";
17 tag = version;
18 hash = "sha256-AocS5Z4WkHTR+nO5/4B7oV/fb/ASG0aGrG/722Ioup0=";
19 };
20
21 nativeBuildInputs = [ setuptools-scm ];
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "bytecode" ];
26
27 meta = {
28 homepage = "https://github.com/vstinner/bytecode";
29 description = "Python module to generate and modify bytecode";
30 license = lib.licenses.mit;
31 maintainers = with lib.maintainers; [ raboof ];
32 };
33}