nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchPypi
4, glibcLocales
5, pytest
6, mock
7, ipython_genutils
8, decorator
9, pythonOlder
10, six
11}:
12
13buildPythonPackage rec {
14 pname = "traitlets";
15 version = "5.1.1";
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "sha256-BZ9FbFp8HIK5jC6MeZ85ybgSj20NRpQe4RjarOnrcMc=";
21 };
22
23 checkInputs = [ glibcLocales pytest mock ];
24 propagatedBuildInputs = [ ipython_genutils decorator six ];
25
26 checkPhase = ''
27 LC_ALL="en_US.UTF-8" py.test
28 '';
29
30 meta = {
31 description = "Traitlets Python config system";
32 homepage = "http://ipython.org/";
33 license = lib.licenses.bsd3;
34 maintainers = with lib.maintainers; [ fridh ];
35 };
36}