2020-07-14 06:22:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
2021-07-06 08:57:10 +00:00
|
|
|
, pytestCheckHook
|
2020-07-14 06:22:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bytecode";
|
2021-07-02 22:36:25 +00:00
|
|
|
version = "0.12.0";
|
2021-07-06 08:57:10 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-07-14 06:22:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vstinner";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-07-02 22:36:25 +00:00
|
|
|
sha256 = "sha256-CEfDoJ+JlnxLLVnSxv7bEN891tmwG9zAvtT8GNvp8JU=";
|
2020-07-14 06:22:01 +00:00
|
|
|
};
|
|
|
|
|
2021-07-06 08:57:10 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-07-14 06:22:01 +00:00
|
|
|
|
2021-07-06 08:57:10 +00:00
|
|
|
pythonImportsCheck = [ "bytecode" ];
|
2020-07-14 06:22:01 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/vstinner/bytecode";
|
|
|
|
description = "Python module to generate and modify bytecode";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ raboof ];
|
|
|
|
};
|
|
|
|
}
|