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-10-17 12:02:46 +00:00
|
|
|
version = "0.13.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-10-17 12:02:46 +00:00
|
|
|
sha256 = "sha256-aY19qMYW7KziiXVY3lxdnHk7OCAJaNh+aTvlQyJWmDw=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|