mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
python.pkgs.traitlets: move expression
This commit is contained in:
parent
7c4c7cde6e
commit
bd941043b8
35
pkgs/development/python-modules/traitlets/default.nix
Normal file
35
pkgs/development/python-modules/traitlets/default.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, glibcLocales
|
||||||
|
, pytest
|
||||||
|
, mock
|
||||||
|
, ipython_genutils
|
||||||
|
, decorator
|
||||||
|
, enum34
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "traitlets";
|
||||||
|
version = "4.3.2";
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "9c4bd2d267b7153df9152698efb1050a5d84982d3384a37b2c1f7723ba3e7835";
|
||||||
|
};
|
||||||
|
|
||||||
|
checkInputs = [ glibcLocales pytest mock ];
|
||||||
|
propagatedBuildInputs = [ ipython_genutils decorator enum34 ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
LC_ALL="en_US.UTF-8" py.test $out
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Traitlets Python config system";
|
||||||
|
homepage = http://ipython.org/;
|
||||||
|
license = lib.licenses.bsd3;
|
||||||
|
maintainers = with lib.maintainers; [ fridh ];
|
||||||
|
};
|
||||||
|
}
|
@ -21026,32 +21026,7 @@ in {
|
|||||||
|
|
||||||
testtools = callPackage ../development/python-modules/testtools { };
|
testtools = callPackage ../development/python-modules/testtools { };
|
||||||
|
|
||||||
traitlets = buildPythonPackage rec {
|
traitlets = callPackage ../development/python-modules/traitlets { };
|
||||||
pname = "traitlets";
|
|
||||||
version = "4.3.2";
|
|
||||||
name = "${pname}-${version}";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "9c4bd2d267b7153df9152698efb1050a5d84982d3384a37b2c1f7723ba3e7835";
|
|
||||||
};
|
|
||||||
|
|
||||||
LC_ALL = "en_US.UTF-8";
|
|
||||||
|
|
||||||
buildInputs = with self; [ pkgs.glibcLocales pytest mock ];
|
|
||||||
propagatedBuildInputs = with self; [ipython_genutils decorator enum34];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
py.test $out
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "Traitlets Python config system";
|
|
||||||
homepage = http://ipython.org/;
|
|
||||||
license = licenses.bsd3;
|
|
||||||
maintainers = with maintainers; [ fridh ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
python_mimeparse = buildPythonPackage rec {
|
python_mimeparse = buildPythonPackage rec {
|
||||||
name = "python-mimeparse-${version}";
|
name = "python-mimeparse-${version}";
|
||||||
|
Loading…
Reference in New Issue
Block a user