nixpkgs/pkgs/development/python-modules/traitlets/default.nix

38 lines
729 B
Nix
Raw Normal View History

2017-10-29 12:31:17 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, glibcLocales
, pytest
, mock
, ipython_genutils
, decorator
, enum34
, pythonOlder
, six
2017-10-29 12:31:17 +00:00
}:
buildPythonPackage rec {
pname = "traitlets";
version = "5.1.0";
disabled = pythonOlder "3.7";
2017-10-29 12:31:17 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "bd382d7ea181fbbcce157c133db9a829ce06edffe097bcf3ab945b435452b46d";
2017-10-29 12:31:17 +00:00
};
checkInputs = [ glibcLocales pytest mock ];
propagatedBuildInputs = [ ipython_genutils decorator six ];
2017-10-29 12:31:17 +00:00
checkPhase = ''
LC_ALL="en_US.UTF-8" py.test
2017-10-29 12:31:17 +00:00
'';
meta = {
description = "Traitlets Python config system";
homepage = "http://ipython.org/";
2017-10-29 12:31:17 +00:00
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fridh ];
};
}