nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchPypi,
4 buildPythonPackage,
5 setuptools,
6 traits,
7 pyface,
8}:
9
10buildPythonPackage rec {
11 pname = "traitsui";
12 version = "8.0.0";
13 pyproject = true;
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-kBudHLxFUT4Apzl2d7CYRBsod0tojzChWbrUgBv0A2Q=";
18 };
19
20 nativeBuildInputs = [ setuptools ];
21
22 propagatedBuildInputs = [
23 traits
24 pyface
25 ];
26
27 # Needs X server
28 doCheck = false;
29
30 pythonImportsCheck = [ "traitsui" ];
31
32 meta = {
33 description = "Traits-capable windowing framework";
34 homepage = "https://github.com/enthought/traitsui";
35 changelog = "https://github.com/enthought/traitsui/releases/tag/${version}";
36 license = lib.licenses.bsdOriginal;
37 maintainers = [ ];
38 };
39}