nixpkgs/pkgs/development/python-modules/ropper/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

46 lines
816 B
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchFromGitHub
, capstone
, filebytes
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "ropper";
version = "1.13.8";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "sashs";
repo = "Ropper";
rev = "v${version}";
hash = "sha256-agbqP5O9QEP5UKkaWI5HxAlMsCBPKNSLnAAo2WFDXS8=";
};
propagatedBuildInputs = [
capstone
filebytes
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"ropper"
];
meta = with lib; {
description = "Show information about files in different file formats";
homepage = "https://scoding.de/ropper/";
license = licenses.bsd3;
maintainers = with maintainers; [ bennofs ];
broken = stdenv.isDarwin;
};
}