2018-04-05 20:07:22 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2018-06-15 19:00:33 +01:00
|
|
|
, stdenv
|
|
|
|
, libcxx
|
2020-06-07 10:15:34 +01:00
|
|
|
, cppy
|
2018-04-05 20:07:22 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "kiwisolver";
|
2020-11-29 14:04:32 +00:00
|
|
|
version = "1.3.1";
|
2018-04-05 20:07:22 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:32 +00:00
|
|
|
sha256 = "950a199911a8d94683a6b10321f9345d5a3a8433ec58b217ace979e18f16e248";
|
2018-04-05 20:07:22 +01:00
|
|
|
};
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
|
2020-08-25 03:07:09 +01:00
|
|
|
|
2020-06-07 10:15:34 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cppy
|
|
|
|
];
|
|
|
|
|
2018-04-05 20:07:22 +01:00
|
|
|
# Does not include tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A fast implementation of the Cassowary constraint solver";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/nucleic/kiwi";
|
2018-04-05 20:07:22 +01:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
};
|
|
|
|
|
2018-06-15 19:00:33 +01:00
|
|
|
}
|