nixpkgs-suyu/pkgs/development/python-modules/xdis/default.nix
2021-03-24 09:30:39 +01:00

32 lines
679 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, isPy27
, click
, pytest
, six
}:
buildPythonPackage rec {
pname = "xdis";
version = "5.0.8";
disabled = isPy27;
src = fetchFromGitHub {
owner = "rocky";
repo = "python-xdis";
rev = version;
sha256 = "01g1bk7rscwmvr2i183z0y2bs1iw7bxk7c5rcf9gf25242nppv6a";
};
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;
};
}