about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2019-07-20 11:03:08 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2019-07-21 08:38:23 +0200
commite18dc13e507c1013e5f5dc004cab72a5d7fe6e8a (patch)
tree54b65c4c07e1f81b1e8386ac2657f7bdfe3ac29c /pkgs/development/python-modules
parentb038b6db3d28421e71005c6d917dc9ebac908cb7 (diff)
downloadnixlib-e18dc13e507c1013e5f5dc004cab72a5d7fe6e8a.tar
nixlib-e18dc13e507c1013e5f5dc004cab72a5d7fe6e8a.tar.gz
nixlib-e18dc13e507c1013e5f5dc004cab72a5d7fe6e8a.tar.bz2
nixlib-e18dc13e507c1013e5f5dc004cab72a5d7fe6e8a.tar.lz
nixlib-e18dc13e507c1013e5f5dc004cab72a5d7fe6e8a.tar.xz
nixlib-e18dc13e507c1013e5f5dc004cab72a5d7fe6e8a.tar.zst
nixlib-e18dc13e507c1013e5f5dc004cab72a5d7fe6e8a.zip
Revert "pythonPackages.jsonschema: 2.6.0 -> 3.0.1"
Too soon. We need to wait till it is better supported.

This reverts commit ba4384d8650de330fd218f08e8679e1d486bd1dc.
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/jsonschema/default.nix48
1 files changed, 14 insertions, 34 deletions
diff --git a/pkgs/development/python-modules/jsonschema/default.nix b/pkgs/development/python-modules/jsonschema/default.nix
index dfff4ac42656..db6be9f99182 100644
--- a/pkgs/development/python-modules/jsonschema/default.nix
+++ b/pkgs/development/python-modules/jsonschema/default.nix
@@ -1,51 +1,31 @@
-{ lib
-, buildPythonPackage
-, fetchPypi
-, attrs
-, pyrsistent
-, setuptools
-, six
-, functools32
-, setuptools_scm
-, perf
-, twisted
-, python
-}:
+{ stdenv, buildPythonPackage, fetchPypi, python
+, nose, mock, vcversioner, functools32 }:
 
 buildPythonPackage rec {
   pname = "jsonschema";
-  version = "3.0.1";
+  version = "2.6.0";
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "03g20i1xfg4qdlk4475pl4pp7y0h37g1fbgs5qhy678q9xb822hc";
+    sha256 = "00kf3zmpp9ya4sydffpifn0j0mzm342a2vzh82p6r0vh10cg7xbg";
   };
 
-  nativeBuildInputs = [
-    setuptools_scm
-  ];
+  checkInputs = [ nose mock vcversioner ];
+  propagatedBuildInputs = [ functools32 ];
 
-  propagatedBuildInputs = [
-    attrs
-    pyrsistent
-    setuptools
-    six
-    functools32
-  ];
-
-  checkInputs = [
-    twisted
-    perf
-  ];
+  postPatch = ''
+    substituteInPlace jsonschema/tests/test_jsonschema_test_suite.py \
+      --replace "python" "${python.pythonForBuild.interpreter}"
+  '';
 
   checkPhase = ''
-    ${python.interpreter} setup.py test --test-suite=jsonschema.tests
+    nosetests
   '';
 
-  meta = with lib; {
-    description = "An implementation of JSON Schema validation for Python";
+  meta = with stdenv.lib; {
     homepage = https://github.com/Julian/jsonschema;
+    description = "An implementation of JSON Schema validation for Python";
     license = licenses.mit;
-    maintainers = with maintainers; [ costrouc domenkozar ];
+    maintainers = with maintainers; [ domenkozar ];
   };
 }