python.pkgs.structlog: move expression
This commit is contained in:
parent
be6ab681f3
commit
803c6a2111
|
@ -0,0 +1,32 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, pytest
|
||||||
|
, pretend
|
||||||
|
, freezegun
|
||||||
|
, simplejson
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "structlog";
|
||||||
|
version = "16.1.0";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "00dywyg3bqlkrmbrfrql21hpjjjkc4zjd6xxjyxyd15brfnzlkdl";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [ pytest pretend freezegun ];
|
||||||
|
propagatedBuildInputs = [ simplejson ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
rm tests/test_twisted.py*
|
||||||
|
py.test
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Painless structural logging";
|
||||||
|
homepage = http://www.structlog.org/;
|
||||||
|
license = lib.licenses.asl20;
|
||||||
|
};
|
||||||
|
}
|
|
@ -18049,28 +18049,7 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
structlog = buildPythonPackage rec {
|
structlog = callPackage ../development/python-modules/structlog { };
|
||||||
name = "structlog-16.1.0";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/s/structlog/${name}.tar.gz";
|
|
||||||
sha256 = "00dywyg3bqlkrmbrfrql21hpjjjkc4zjd6xxjyxyd15brfnzlkdl";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ pytest pretend freezegun ];
|
|
||||||
propagatedBuildInputs = with self; [ simplejson ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
rm tests/test_twisted.py*
|
|
||||||
py.test
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Painless structural logging";
|
|
||||||
homepage = http://www.structlog.org/;
|
|
||||||
license = licenses.asl20;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
svgwrite = buildPythonPackage rec {
|
svgwrite = buildPythonPackage rec {
|
||||||
name = "svgwrite-${version}";
|
name = "svgwrite-${version}";
|
||||||
|
|
Loading…
Reference in New Issue