1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 04:02:10 +00:00

pythonPackages.demjson: 1.6 -> 2.2.4

* fetchurl -> fetchPypi
* Tests work now.
* jsonlint is installed for us by package buildsys.
* Disable for python3.6 (build/test error).
This commit is contained in:
Bjørn Forsman 2017-10-29 11:05:52 +01:00
parent f6b0aa8ad5
commit 2e44d576fd

View file

@ -4853,20 +4853,16 @@ in {
demjson = buildPythonPackage rec {
name = "demjson-1.6";
pname = "demjson";
version = "2.2.4";
name = "${pname}-${version}";
disabled = isPy36;
src = pkgs.fetchurl {
url = "mirror://pypi/d/demjson/${name}.tar.gz";
sha256 = "0abf7wqqq7rk1sycy47ayn5p93yy7gjq50cb2z69wmik1qqrr60x";
src = fetchPypi {
inherit pname version;
sha256 = "0ygbddpnvp5lby6mr5kz60la3hkvwwzv3wwb3z0w9ngxl0w21pii";
};
doCheck = false; # there are no tests
preFixup = ''
mkdir -p "$out/bin"
cp jsonlint "$out/bin/"
'';
meta = {
description = "Encoder/decoder and lint/validator for JSON (JavaScript Object Notation)";
homepage = http://deron.meranda.us/python/demjson/;