pythonPackages.warlock: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-17 15:00:59 -04:00 committed by Frederik Rietdijk
parent 4156569b54
commit 08b3dbea20
2 changed files with 28 additions and 21 deletions

View File

@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, six
, jsonpatch
, jsonschema
, jsonpointer
}:
buildPythonPackage rec {
pname = "warlock";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "0npgi4ks0nww2d6ci791iayab0j6kz6dx3jr7bhpgkql3s4if3bw";
};
propagatedBuildInputs = [ six jsonpatch jsonschema jsonpointer ];
meta = with stdenv.lib; {
homepage = https://github.com/bcwaldon/warlock;
description = "Python object model built on JSON schema and JSON patch";
license = licenses.asl20;
};
}

View File

@ -3019,27 +3019,7 @@ in {
cmd2_9 = callPackage ../development/python-modules/cmd2 {};
cmd2 = if isPy27 then self.cmd2_8 else self.cmd2_9;
warlock = buildPythonPackage rec {
name = "warlock-${version}";
version = "1.2.0";
src = pkgs.fetchurl {
url = "mirror://pypi/w/warlock/${name}.tar.gz";
sha256 = "0npgi4ks0nww2d6ci791iayab0j6kz6dx3jr7bhpgkql3s4if3bw";
};
propagatedBuildInputs = with self; [
six jsonpatch jsonschema jsonpointer
];
buildInputs = with self; [
];
meta = with stdenv.lib; {
homepage = https://github.com/bcwaldon/warlock;
};
};
warlock = callPackage ../development/python-modules/warlock { };
pecan = callPackage ../development/python-modules/pecan { };