nixpkgs/pkgs/development/python-modules/xdis/default.nix

32 lines
640 B
Nix
Raw Normal View History

2019-10-27 00:41:41 +00:00
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
2019-08-20 22:20:02 +00:00
, click
2018-10-25 18:04:28 +00:00
, pytest
, six
}:
buildPythonPackage rec {
pname = "xdis";
version = "5.0.4";
2019-10-27 00:41:41 +00:00
disabled = isPy27;
2019-08-20 22:20:02 +00:00
src = fetchFromGitHub {
owner = "rocky";
repo = "python-xdis";
rev = version;
sha256 = "0hh5pam8dabvh0w1bks0rqfq85gjy3h6ljrzmjg0nqsaapp1g4dd";
};
2018-10-25 18:04:28 +00:00
checkInputs = [ pytest ];
propagatedBuildInputs = [ six click ];
2019-01-07 02:01:51 +00:00
checkPhase = ''
make check
'';
2019-08-20 22:20:02 +00:00
meta = with lib; {
description = "Python cross-version byte-code disassembler and marshal routines";
2020-03-25 17:28:02 +00:00
homepage = "https://github.com/rocky/python-xdis/";
license = licenses.gpl2;
};
}