about summary refs log tree commit diff
path: root/pkgs/development/python-modules/kiwisolver/default.nix
blob: c0c3b09e7b4bd5bf040f688241a54c3dd3aaf042 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib
, buildPythonPackage
, fetchPypi
, stdenv
, libcxx
}:

buildPythonPackage rec {
  pname = "kiwisolver";
  version = "1.0.1";

  src = fetchPypi {
    inherit pname version;
    sha256 = "ce3be5d520b4d2c3e5eeb4cd2ef62b9b9ab8ac6b6fedbaa0e39cdb6f50644278";
  };
  
  NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
  
  # Does not include tests
  doCheck = false;

  meta = {
    description = "A fast implementation of the Cassowary constraint solver";
    homepage = https://github.com/nucleic/kiwi;
    license = lib.licenses.bsd3;
  };

}