1{ lib
2, buildPythonPackage
3, fetchPypi
4, glibcLocales
5, pytest
6, mock
7, ipython_genutils
8, decorator
9, pythonOlder
10, six
11, hatchling
12}:
13
14buildPythonPackage rec {
15 pname = "traitlets";
16 version = "5.4.0";
17 format = "pyproject";
18 disabled = pythonOlder "3.7";
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "sha256-PyxOQ14nFZL+Q5DxdG6laDbjoID4Tngz8PgB2WE/7Dk=";
23 };
24
25 nativeBuildInputs = [ hatchling ];
26 checkInputs = [ glibcLocales pytest mock ];
27 propagatedBuildInputs = [ ipython_genutils decorator six ];
28
29 checkPhase = ''
30 LC_ALL="en_US.UTF-8" py.test
31 '';
32
33 meta = {
34 description = "Traitlets Python config system";
35 homepage = "http://ipython.org/";
36 license = lib.licenses.bsd3;
37 maintainers = with lib.maintainers; [ fridh ];
38 };
39}