1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 stdenv,
6 libcxx,
7 cppy,
8 setuptools-scm,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "kiwisolver";
14 version = "1.4.5";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-5X5WOlf7IqFC2jTziswvwaXIZLwpyhUXqIq8lj5g1uw=";
22 };
23
24 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1";
25
26 nativeBuildInputs = [ setuptools-scm ];
27
28 buildInputs = [ cppy ];
29
30 pythonImportsCheck = [ "kiwisolver" ];
31
32 meta = with lib; {
33 description = "Implementation of the Cassowary constraint solver";
34 homepage = "https://github.com/nucleic/kiwi";
35 license = licenses.bsd3;
36 maintainers = with maintainers; [ ];
37 };
38}