From d0f2361bc1ffdff631fc7ebb9c2ec1b08b135898 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Sun, 28 May 2017 10:08:10 +0200 Subject: python.pkgs.simplejson: 3.8.1 -> 3.10.0 --- .../python-modules/simplejson/default.nix | 28 ++++++++++++++++++++++ pkgs/top-level/python-packages.nix | 25 +------------------ 2 files changed, 29 insertions(+), 24 deletions(-) create mode 100644 pkgs/development/python-modules/simplejson/default.nix (limited to 'pkgs') diff --git a/pkgs/development/python-modules/simplejson/default.nix b/pkgs/development/python-modules/simplejson/default.nix new file mode 100644 index 000000000000..983d17655215 --- /dev/null +++ b/pkgs/development/python-modules/simplejson/default.nix @@ -0,0 +1,28 @@ +{ lib +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "simplejson"; + version = "3.10.0"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "953be622e88323c6f43fad61ffd05bebe73b9fd9863a46d68b052d2aa7d71ce2"; + }; + + meta = { + description = "A simple, fast, extensible JSON encoder/decoder for Python"; + longDescription = '' + simplejson is compatible with Python 2.4 and later with no + external dependencies. It covers the full JSON specification + for both encoding and decoding, with unicode support. By + default, encoding is done in an encoding neutral fashion (plain + ASCII with \uXXXX escapes for unicode characters). + ''; + homepage = http://code.google.com/p/simplejson/; + license = lib.licenses.mit; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3732556bfad2..3f5b20a62d62 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -22775,30 +22775,7 @@ in { }; }; - simplejson = buildPythonPackage (rec { - name = "simplejson-3.8.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/simplejson/${name}.tar.gz"; - sha256 = "14r4l4rcsyf87p2j4ycsbb017n4vzxfmv285rq2gny4w47rwi2j2"; - }; - - meta = { - description = "A simple, fast, extensible JSON encoder/decoder for Python"; - - longDescription = '' - simplejson is compatible with Python 2.4 and later with no - external dependencies. It covers the full JSON specification - for both encoding and decoding, with unicode support. By - default, encoding is done in an encoding neutral fashion (plain - ASCII with \uXXXX escapes for unicode characters). - ''; - - homepage = http://code.google.com/p/simplejson/; - - license = licenses.mit; - }; - }); + simplejson = callPackage ../development/python-modules/simplejson { }; simpleldap = buildPythonPackage rec { version = "0.8"; -- cgit 1.4.1