depot/third_party/nixpkgs/pkgs/development/python-modules/traitlets/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

36 lines
720 B
Nix

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