3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/jsonpatch/default.nix
Frederik Rietdijk ced21f5e1a pythonPackages: remove name attribute`
The `buildPython*` function computes name from `pname` and `version`.
This change removes `name` attribute from all expressions in
`pkgs/development/python-modules`.

While at it, some other minor changes were made as well, such as
replacing `fetchurl` calls with `fetchPypi`.
2018-06-23 18:14:26 +02:00

26 lines
577 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, jsonpointer
}:
buildPythonPackage rec {
pname = "jsonpatch";
version = "1.23";
src = fetchPypi {
inherit pname version;
sha256 = "49f29cab70e9068db3b1dc6b656cbe2ee4edf7dfe9bf5a0055f17a4b6804a4b9";
};
# test files are missing
doCheck = false;
propagatedBuildInputs = [ jsonpointer ];
meta = {
description = "Library to apply JSON Patches according to RFC 6902";
homepage = "https://github.com/stefankoegl/python-json-patch";
license = lib.licenses.bsd2; # "Modified BSD license, says pypi"
};
}