Skip to content

Commit

Permalink
ropper: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Jun 1, 2017
1 parent 6482224 commit bb21e53
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 15 deletions.
28 changes: 28 additions & 0 deletions pkgs/development/python-modules/ropper/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ stdenv
, buildPythonApplication
, fetchPypi
, capstone
, filebytes
, pytest }:

buildPythonApplication rec {
name = "${pname}-${version}";
pname = "ropper";
version = "1.10.10";

src = fetchPypi {
inherit pname version;
sha256 = "1676e07947a19df9d17002307a7555c2647a4224d6f2869949e8fc4bd18f2e87";
};
checkPhase = ''
py.test testcases
'';
buildInputs = [pytest];
propagatedBuildInputs = [ capstone filebytes ];
meta = with stdenv.lib; {
homepage = "https://scoding.de/ropper/";
license = licenses.gpl2;
description = "Show information about files in different file formats";
maintainers = with maintainers; [ bennofs ];
};
}
16 changes: 1 addition & 15 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22009,21 +22009,7 @@ in {
};
};

ropper = buildPythonApplication rec {
name = "ropper-1.10.10";
src = pkgs.fetchurl {
url = "mirror://pypi/r/ropper/${name}.tar.gz";
sha256 = "1676e07947a19df9d17002307a7555c2647a4224d6f2869949e8fc4bd18f2e87";
};
propagatedBuildInputs = with self; [ capstone filebytes ];
meta = with pkgs.stdenv.lib; {
homepage = "https://scoding.de/ropper/";
license = licenses.gpl2;
description = "Show information about files in different file formats";
maintainers = with maintainers; [ bennofs ];
};
};

ropper = callPackage ../development/python-modules/ropper { };

routes = buildPythonPackage rec {
name = "routes-1.12.3";
Expand Down

0 comments on commit bb21e53

Please sign in to comment.