Merge branch 'staging-next' into staging

This commit is contained in:
Jan Tojnar
2019-11-30 19:45:46 +01:00
66 changed files with 572 additions and 163 deletions

View File

@@ -1,12 +1,12 @@
{ lib, buildPythonPackage, fetchPypi }:
buildPythonPackage rec {
version = "1.0.1";
version = "1.1.0";
pname = "bitarray";
src = fetchPypi {
inherit pname version;
sha256 = "3eb500f8b9cde19e14472fcbee0195dbf0fbac006f8406a03f0cfb495dff20a0";
sha256 = "0nv1283qcfilhnb4q6znlijply6lfxwpvp10cr0v33l0qwa86mwz";
};
meta = with lib; {

View File

@@ -0,0 +1,93 @@
{ lib
, buildPythonPackage
, isPy3k
, pythonOlder
, fetchFromGitHub
, pyparsing
, opencascade
, stdenv
, python
, cmake
, swig
, ninja
, smesh
, freetype
, libGL
, libGLU
, libX11
, six
}:
let
pythonocc-core-cadquery = stdenv.mkDerivation {
pname = "pythonocc-core-cadquery";
version = "0.18.2";
src = fetchFromGitHub {
owner = "CadQuery";
repo = "pythonocc-core";
# no proper release to to use, this commit copied from the Anaconda receipe
rev = "701e924ae40701cbe6f9992bcbdc2ef22aa9b5ab";
sha256 = "07zmiiw74dyj4v0ar5vqkvk30wzcpjjzbi04nsdk5mnlzslmyi6c";
};
nativeBuildInputs = [
cmake
swig
ninja
];
buildInputs = [
python
opencascade
smesh
freetype
libGL
libGLU
libX11
];
propagatedBuildInputs = [
six
];
cmakeFlags = [
"-Wno-dev"
"-DPYTHONOCC_INSTALL_DIRECTORY=${placeholder "out"}/${python.sitePackages}/OCC"
"-DSMESH_INCLUDE_PATH=${smesh}/include/smesh"
"-DSMESH_LIB_PATH=${smesh}/lib"
"-DPYTHONOCC_WRAP_SMESH=TRUE"
];
};
in
buildPythonPackage rec {
pname = "cadquery";
version = "2.0RC0";
src = fetchFromGitHub {
owner = "CadQuery";
repo = pname;
rev = version;
sha256 = "1xgd00rih0gjcnlrf9s6r5a7ypjkzgf2xij2b6436i76h89wmir3";
};
buildInputs = [
opencascade
];
propagatedBuildInputs = [
pyparsing
pythonocc-core-cadquery
];
# Build errors on 2.7 and >=3.8 (officially only supports 3.6 and 3.7).
disabled = !(isPy3k && (pythonOlder "3.8"));
meta = with lib; {
description = "Parametric scripting language for creating and traversing CAD models";
homepage = "https://github.com/CadQuery/cadquery";
license = licenses.asl20;
maintainers = with maintainers; [ costrouc marcus7070 ];
};
}

View File

@@ -0,0 +1,29 @@
{ lib
, buildPythonPackage
, fetchPypi
, EasyProcess
}:
buildPythonPackage rec {
pname = "pyscreenshot";
version = "0.5.1";
src = fetchPypi {
inherit pname version;
sha256 = "19ec6d17a61c0cd4e7fcf3ab2685598a54b53dc781755393cc5f76dcb7bf359c";
};
propagatedBuildInputs = [
EasyProcess
];
# recursive dependency on pyvirtualdisplay
doCheck = false;
meta = with lib; {
description = "python screenshot";
homepage = "https://github.com/ponty/pyscreenshot";
license = licenses.bsd3;
maintainers = with maintainers; [ costrouc ];
};
}

View File

@@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools_scm
, pytest
, pyqt5
}:
buildPythonPackage rec {
pname = "pytest-qt";
version = "3.2.2";
src = fetchPypi {
inherit pname version;
sha256 = "f6ecf4b38088ae1092cbd5beeaf714516d1f81f8938626a2eac546206cdfe7fa";
};
nativeBuildInputs = [
setuptools_scm
];
propagatedBuildInputs = [
pytest
];
checkInputs = [
pyqt5
];
# tests require X server
doCheck = false;
meta = with lib; {
description = "pytest support for PyQt and PySide applications";
homepage = "https://github.com/pytest-dev/pytest-qt";
license = licenses.mit;
maintainers = with maintainers; [ costrouc ];
};
}

View File

@@ -8,33 +8,29 @@
buildPythonPackage rec {
pname = "pytest-repeat";
version = "0.7.0";
version = "0.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "0axbrpqal3cqw9zq6dakdbg49pnf5gvyvq6yn93hp1ayc7fnhzk3";
sha256 = "1nbdmklpi0ra1jnfm032wz96y9nxdlcr4m9sjlnffwm7n4x43g2j";
};
# fixes support for pytest >3.6. Should be droppable during the
# next bump.
patches = [
(fetchpatch {
url = https://github.com/pytest-dev/pytest-repeat/commit/f94b6940e3651b7593aca5a7a987eb56abe04cb1.patch;
sha256 = "00da1gmpq9pslcmm8pw93jcbp8j2zymzqdsm6jq3xinkvjpsbmny";
})
nativeBuildInputs = [
setuptools_scm
];
buildInputs = [ setuptools_scm ];
checkInputs = [ pytest ];
checkInputs = [
pytest
];
checkPhase = ''
py.test
pytest
'';
meta = {
meta = with lib; {
description = "Pytest plugin for repeating tests";
homepage = https://github.com/pytest-dev/pytest-repeat;
maintainers = with lib.maintainers; [ costrouc ];
license = lib.licenses.mpl20;
homepage = "https://github.com/pytest-dev/pytest-repeat";
license = licenses.mpl20;
maintainers = with maintainers; [ costrouc ];
};
}

View File

@@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchPypi
, pytest
, virtual-display
}:
buildPythonPackage rec {
pname = "pytest-xvfb";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "a7544ca8d0c7c40db4b40d7a417a7b071c68d6ef6bdf9700872d7a167302f979";
};
propagatedBuildInputs = [
pytest
virtual-display
];
meta = with lib; {
description = "A pytest plugin to run Xvfb for tests";
homepage = "https://github.com/The-Compiler/pytest-xvfb";
license = licenses.mit;
maintainers = with maintainers; [ costrouc ];
};
}

View File

@@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest
, pytestcov
, pytestrunner
, pycodestyle
, pyyaml
}:
buildPythonPackage rec {
pname = "tinydb";
version = "v3.14.1";
src = fetchFromGitHub {
owner = "msiemens";
repo = pname;
rev = version;
sha256 = "02idbvrm8j4mwsjfkzy11f4png19k307p53s4qa2ifzssysxpb96";
};
nativeBuildInputs = [
pytestrunner
];
checkInputs = [
pytest
pytestcov
pycodestyle
pyyaml
];
meta = with lib; {
description = "A lightweight document oriented database written in pure Python with no external dependencies";
homepage = "https://github.com/msiemens/tinydb";
license = licenses.asl20;
maintainers = with maintainers; [ marcus7070 ];
};
}