nixpkgs/pkgs/development/python-modules/xdis/default.nix
2021-11-01 12:11:09 -07:00

32 lines
678 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, isPy27
, click
, pytest
, six
}:
buildPythonPackage rec {
pname = "xdis";
version = "6.0.2";
disabled = isPy27;
src = fetchFromGitHub {
owner = "rocky";
repo = "python-xdis";
rev = version;
sha256 = "sha256-P8mUkAO3usFCE+E9cna2x1iA2uyHVPX9FHDpX+kTFWQ=";
};
checkInputs = [ pytest ];
propagatedBuildInputs = [ six click ];
checkPhase = ''
make check
'';
pythonImportsCheck = [ "xdis" ];
meta = with lib; {
description = "Python cross-version byte-code disassembler and marshal routines";
homepage = "https://github.com/rocky/python-xdis/";
license = licenses.gpl2Plus;
};
}