From 4162f7d27984ae92c3bbd803f6af323934ca22dc Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 20 Apr 2022 11:49:13 +0200 Subject: [PATCH] python3Packages.xdis: 6.0.3 -> unstable-2022-04-13 --- .../python-modules/xdis/default.nix | 47 ++++++++++++++----- 1 file changed, 35 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/xdis/default.nix b/pkgs/development/python-modules/xdis/default.nix index ca339b7a443..291da467e9e 100644 --- a/pkgs/development/python-modules/xdis/default.nix +++ b/pkgs/development/python-modules/xdis/default.nix @@ -1,32 +1,55 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy27 +{ lib +, buildPythonPackage , click -, pytest +, fetchFromGitHub +, fetchpatch +, pytestCheckHook +, pythonOlder , six }: buildPythonPackage rec { pname = "xdis"; - version = "6.0.3"; - disabled = isPy27; + version = "unstable-2022-04-13"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "rocky"; repo = "python-xdis"; - rev = version; - sha256 = "1qvg3bwqzqxlzlixz2di3si7siy0ismq93wd57r8cqmxl54gva6h"; + # Support for later Python releases is missing in 6.0.3 + rev = "f888df7df5cb8839927e9187c258769cc77fb7a3"; + hash = "sha256-V1ws5GibRkutFRNcjlP7aW+AshSyWavXIxuwznVbRlU="; }; - checkInputs = [ pytest ]; - propagatedBuildInputs = [ six click ]; + propagatedBuildInputs = [ + click + six + ]; - checkPhase = '' - make check - ''; - pythonImportsCheck = [ "xdis" ]; + 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; [ ]; }; }