summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-prctl/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/python-prctl/default.nix')
-rw-r--r--pkgs/development/python-modules/python-prctl/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/python-prctl/default.nix b/pkgs/development/python-modules/python-prctl/default.nix
new file mode 100644
index 000000000000..5d092f5e6eab
--- /dev/null
+++ b/pkgs/development/python-modules/python-prctl/default.nix
@@ -0,0 +1,26 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, libcap
+}:
+
+buildPythonPackage rec {
+ pname = "python-prctl";
+ version = "1.7";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "1njgixnavmwq45r3gpkhn1y760sax204clagg4gzwvvdc5bdbssp";
+ };
+
+ patches = [ ./skip_bad_tests.patch ];
+ buildInputs = [ libcap ];
+
+ meta = {
+ description = "Python(ic) interface to the linux prctl syscall";
+ homepage = https://github.com/seveas/python-prctl;
+ license = lib.licenses.gpl3;
+ platforms = lib.platforms.linux;
+ maintainers = with lib.maintainers; [ catern ];
+ };
+}