nixpkgs/pkgs/development/python-modules/traitlets/default.nix
2021-11-30 14:19:52 +01:00

37 lines
707 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, glibcLocales
, pytest
, mock
, ipython_genutils
, decorator
, pythonOlder
, six
}:
buildPythonPackage rec {
pname = "traitlets";
version = "5.1.1";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-BZ9FbFp8HIK5jC6MeZ85ybgSj20NRpQe4RjarOnrcMc=";
};
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 ];
};
}