forked from mirrors/nixpkgs
pythonPackages.warlock: refactor move to python-modules
This commit is contained in:
parent
4156569b54
commit
08b3dbea20
27
pkgs/development/python-modules/warlock/default.nix
Normal file
27
pkgs/development/python-modules/warlock/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
|
@ -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 { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue