about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorSpencer Baugh <sbaugh@catern.com>2018-05-08 22:19:22 +0000
committerSpencer Baugh <sbaugh@catern.com>2018-05-11 16:38:04 +0000
commit46fa7ab6863326af795ab34e96cce2719f4961f2 (patch)
treec4e5c29b8fb8606bf9205b1c4521f7205b025d78 /pkgs/development/python-modules
parentc4f5d559dad3f86071ddb8de02a9f3ed715d13b8 (diff)
downloadnixlib-46fa7ab6863326af795ab34e96cce2719f4961f2.tar
nixlib-46fa7ab6863326af795ab34e96cce2719f4961f2.tar.gz
nixlib-46fa7ab6863326af795ab34e96cce2719f4961f2.tar.bz2
nixlib-46fa7ab6863326af795ab34e96cce2719f4961f2.tar.lz
nixlib-46fa7ab6863326af795ab34e96cce2719f4961f2.tar.xz
nixlib-46fa7ab6863326af795ab34e96cce2719f4961f2.tar.zst
nixlib-46fa7ab6863326af795ab34e96cce2719f4961f2.zip
pythonPackages.outcome: init at 0.1.0a0
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/outcome/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/outcome/default.nix b/pkgs/development/python-modules/outcome/default.nix
new file mode 100644
index 000000000000..e91925c75d50
--- /dev/null
+++ b/pkgs/development/python-modules/outcome/default.nix
@@ -0,0 +1,27 @@
+{ lib, buildPythonPackage, fetchPypi, pythonOlder
+, attrs
+, pytest
+}:
+
+buildPythonPackage rec {
+  pname = "outcome";
+  version = "0.1.0a0";
+  disabled = pythonOlder "3.4";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "0cqwakzigw0602dxlb7c1882jwr8hn5nrxk1l8iwlmzc9whh48wn";
+  };
+
+  checkInputs = [ pytest ];
+  propagatedBuildInputs = [ attrs ];
+  # Has a test dependency on trio, which depends on outcome.
+  doCheck = false;
+
+  meta = {
+    description = "Capture the outcome of Python function calls.";
+    homepage = https://github.com/python-trio/outcome;
+    license = with lib.licenses; [ mit asl20 ];
+    maintainers = with lib.maintainers; [ catern ];
+  };
+}