Merge pull request #165940 from SuperSandro2000/kiwisolver

This commit is contained in:
Sandro 2022-03-27 18:04:49 +02:00 committed by GitHub
commit 512c8deb60
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 10 deletions

View file

@ -1,23 +1,27 @@
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, pythonOlder
, pytestCheckHook
, setuptools-scm
}:
buildPythonPackage rec {
pname = "cppy";
version = "1.2.0";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-leiGLk+CbD8qa3tlgzOxYvgMvp+UOqDQp6ay74UK7/w=";
};
# Not supported
disabled = !isPy3k;
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "cppy" ];
meta = {

View file

@ -4,30 +4,33 @@
, stdenv
, libcxx
, cppy
, setuptools-scm
}:
buildPythonPackage rec {
pname = "kiwisolver";
version = "1.3.2";
version = "1.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "fc4453705b81d03568d5b808ad8f09c77c47534f6ac2e72e733f9ca4714aa75c";
sha256 = "sha256-dQiwHiEReKhdIfH4cCmEa3eyQEpMaMvRR0jU1BQvo7g=";
};
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1";
nativeBuildInputs = [
setuptools-scm
];
buildInputs = [
cppy
];
# Does not include tests
doCheck = false;
pythonImportsCheck = [ "kiwisolver" ];
meta = {
meta = with lib; {
description = "A fast implementation of the Cassowary constraint solver";
homepage = "https://github.com/nucleic/kiwi";
license = lib.licenses.bsd3;
license = licenses.bsd3;
};
}