python3Packages.xdis: 6.0.3 -> unstable-2022-04-13
This commit is contained in:
parent
1f05fa3d34
commit
4162f7d279
|
@ -1,32 +1,55 @@
|
||||||
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
, click
|
, click
|
||||||
, pytest
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
, six
|
, six
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "xdis";
|
pname = "xdis";
|
||||||
version = "6.0.3";
|
version = "unstable-2022-04-13";
|
||||||
disabled = isPy27;
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "rocky";
|
owner = "rocky";
|
||||||
repo = "python-xdis";
|
repo = "python-xdis";
|
||||||
rev = version;
|
# Support for later Python releases is missing in 6.0.3
|
||||||
sha256 = "1qvg3bwqzqxlzlixz2di3si7siy0ismq93wd57r8cqmxl54gva6h";
|
rev = "f888df7df5cb8839927e9187c258769cc77fb7a3";
|
||||||
|
hash = "sha256-V1ws5GibRkutFRNcjlP7aW+AshSyWavXIxuwznVbRlU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ pytest ];
|
propagatedBuildInputs = [
|
||||||
propagatedBuildInputs = [ six click ];
|
click
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [
|
||||||
make check
|
pytestCheckHook
|
||||||
'';
|
];
|
||||||
pythonImportsCheck = [ "xdis" ];
|
|
||||||
|
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; {
|
meta = with lib; {
|
||||||
description = "Python cross-version byte-code disassembler and marshal routines";
|
description = "Python cross-version byte-code disassembler and marshal routines";
|
||||||
homepage = "https://github.com/rocky/python-xdis/";
|
homepage = "https://github.com/rocky/python-xdis/";
|
||||||
license = licenses.gpl2Plus;
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue