a6d62be0d1
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
36 lines
707 B
Nix
36 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 ];
|
|
};
|
|
}
|