depot/third_party/nixpkgs/pkgs/development/python-modules/xdis/default.nix
Default email 889482aab3 Project import generated by Copybara.
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
2022-06-26 12:26:21 +02:00

54 lines
954 B
Nix

{ lib
, buildPythonPackage
, click
, fetchFromGitHub
, fetchpatch
, pytestCheckHook
, pythonOlder
, six
}:
buildPythonPackage rec {
pname = "xdis";
version = "6.0.4";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "rocky";
repo = "python-xdis";
rev = version;
hash = "sha256-CRZG898xCwukq+9YVkyXMP8HcuJ9GtvDhy96kxvRFks=";
};
propagatedBuildInputs = [
click
six
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"xdis"
];
disabledTestPaths = [
# Our Python release is not in the test matrix
"test_unit/test_disasm.py"
];
disabledTests = [
"test_big_linenos"
"test_basic"
];
meta = with lib; {
description = "Python cross-version byte-code disassembler and marshal routines";
homepage = "https://github.com/rocky/python-xdis";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ];
};
}