python.pkgs.kiwisolver: fix build
This commit is contained in:
parent
936b2b8782
commit
9a49beb08d
3 changed files with 37 additions and 1 deletions
28
pkgs/development/python-modules/kiwisolver/1_1.nix
Normal file
28
pkgs/development/python-modules/kiwisolver/1_1.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, stdenv
|
||||
, libcxx
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "kiwisolver";
|
||||
version = "1.1.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "53eaed412477c836e1b9522c19858a8557d6e595077830146182225613b11a75";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
|
||||
}
|
|
@ -3,6 +3,7 @@
|
|||
, fetchPypi
|
||||
, stdenv
|
||||
, libcxx
|
||||
, cppy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -16,6 +17,10 @@ buildPythonPackage rec {
|
|||
|
||||
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
|
||||
|
||||
nativeBuildInputs = [
|
||||
cppy
|
||||
];
|
||||
|
||||
# Does not include tests
|
||||
doCheck = false;
|
||||
|
||||
|
|
|
@ -4265,7 +4265,10 @@ in {
|
|||
|
||||
keyutils = callPackage ../development/python-modules/keyutils { inherit (pkgs) keyutils; };
|
||||
|
||||
kiwisolver = callPackage ../development/python-modules/kiwisolver { };
|
||||
kiwisolver = if isPy3k then
|
||||
callPackage ../development/python-modules/kiwisolver { }
|
||||
else
|
||||
callPackage ../development/python-modules/kiwisolver/1_1.nix { };
|
||||
|
||||
klaus = callPackage ../development/python-modules/klaus {};
|
||||
|
||||
|
|
Loading…
Reference in a new issue