summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-05-17 13:57:33 +0100
committerJörg Thalheim <joerg@thalheim.io>2017-06-01 11:54:18 +0100
commitbb21e5356f26dbeb9810189e902352457f263b47 (patch)
treeac17ad8eb69c8b65bd2905d49c5a7ac257c87cbc /pkgs/development/python-modules
parent6482224d45877fee411a7ba9fc83fe98d8dcda42 (diff)
downloadnixlib-bb21e5356f26dbeb9810189e902352457f263b47.tar
nixlib-bb21e5356f26dbeb9810189e902352457f263b47.tar.gz
nixlib-bb21e5356f26dbeb9810189e902352457f263b47.tar.bz2
nixlib-bb21e5356f26dbeb9810189e902352457f263b47.tar.lz
nixlib-bb21e5356f26dbeb9810189e902352457f263b47.tar.xz
nixlib-bb21e5356f26dbeb9810189e902352457f263b47.tar.zst
nixlib-bb21e5356f26dbeb9810189e902352457f263b47.zip
ropper: fix tests
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/ropper/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/ropper/default.nix b/pkgs/development/python-modules/ropper/default.nix
new file mode 100644
index 000000000000..37369b8f0bde
--- /dev/null
+++ b/pkgs/development/python-modules/ropper/default.nix
@@ -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 ];
+  };
+}