nixpkgs/pkgs/development/python-modules/kiwisolver/default.nix

34 lines
639 B
Nix
Raw Normal View History

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