3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/traitlets/default.nix
Keshav Kini ce5b550d01 python36Packages.traitlets, pythonPackages.traitlets: 5.0.5 -> 4.3.3
Version 5.x of traitlets requires Python 3.7, so it doesn't build on Python
3.6.  This commit downgrades traitlets to 4.3.3 on Python versions older than
3.7 so that it can still be used.
2020-12-11 07:27:41 -08:00

38 lines
729 B
Nix

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