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