mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
Merge pull request #66254 from marcus7070/cadquery-and-friends-init
pythonPackages.cadquery: init at 2.0RC0 & cq-editor: init at 0.1RC1
This commit is contained in:
commit
e8f2764fe8
@ -4162,6 +4162,12 @@
|
||||
github = "marcweber";
|
||||
githubId = 34086;
|
||||
name = "Marc Weber";
|
||||
};
|
||||
marcus7070 = {
|
||||
email = "marcus@geosol.com.au";
|
||||
github = "marcus7070";
|
||||
githubId = 50230945;
|
||||
name = "Marcus Boyd";
|
||||
};
|
||||
marenz = {
|
||||
email = "marenz@arkom.men";
|
||||
|
57
pkgs/applications/graphics/cq-editor/default.nix
Normal file
57
pkgs/applications/graphics/cq-editor/default.nix
Normal file
@ -0,0 +1,57 @@
|
||||
{ lib
|
||||
, mkDerivationWith
|
||||
, python3Packages
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
|
||||
mkDerivationWith python3Packages.buildPythonApplication rec {
|
||||
pname = "cq-editor";
|
||||
version = "0.1RC1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "CadQuery";
|
||||
repo = "CQ-editor";
|
||||
rev = version;
|
||||
sha256 = "0iwcpnj15s64k16948sakvkn1lb4mqwrhmbxk3r03bczs0z33zax";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
cadquery
|
||||
Logbook
|
||||
pyqt5
|
||||
pyparsing
|
||||
pyqtgraph
|
||||
spyder
|
||||
pathpy
|
||||
qtconsole
|
||||
requests
|
||||
];
|
||||
|
||||
postFixup = ''
|
||||
wrapQtApp "$out/bin/cq-editor"
|
||||
'';
|
||||
|
||||
checkInputs = with python3Packages; [
|
||||
pytest
|
||||
pytest-xvfb
|
||||
pytest-mock
|
||||
pytestcov
|
||||
pytest-repeat
|
||||
pytest-qt
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
pytest --no-xvfb
|
||||
'';
|
||||
|
||||
# requires X server
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "CadQuery GUI editor based on PyQT";
|
||||
homepage = "https://github.com/CadQuery/CQ-editor";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ costrouc marcus7070 ];
|
||||
};
|
||||
|
||||
}
|
93
pkgs/development/python-modules/cadquery/default.nix
Normal file
93
pkgs/development/python-modules/cadquery/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
29
pkgs/development/python-modules/pyscreenshot/default.nix
Normal file
29
pkgs/development/python-modules/pyscreenshot/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
39
pkgs/development/python-modules/pytest-qt/default.nix
Normal file
39
pkgs/development/python-modules/pytest-qt/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
28
pkgs/development/python-modules/pytest-xvfb/default.nix
Normal file
28
pkgs/development/python-modules/pytest-xvfb/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
39
pkgs/development/python-modules/tinydb/default.nix
Normal file
39
pkgs/development/python-modules/tinydb/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -18295,6 +18295,8 @@ in
|
||||
|
||||
coyim = callPackage ../applications/networking/instant-messengers/coyim {};
|
||||
|
||||
cq-editor = libsForQt5.callPackage ../applications/graphics/cq-editor { };
|
||||
|
||||
cpp_ethereum = callPackage ../applications/misc/cpp-ethereum { };
|
||||
|
||||
crun = callPackage ../applications/virtualization/crun {};
|
||||
|
@ -497,6 +497,8 @@ in {
|
||||
|
||||
cachy = callPackage ../development/python-modules/cachy { };
|
||||
|
||||
cadquery = callPackage ../development/python-modules/cadquery { };
|
||||
|
||||
catalogue = callPackage ../development/python-modules/catalogue { };
|
||||
|
||||
cdecimal = callPackage ../development/python-modules/cdecimal { };
|
||||
@ -1101,6 +1103,8 @@ in {
|
||||
|
||||
pyschedule = callPackage ../development/python-modules/pyschedule { };
|
||||
|
||||
pyscreenshot = callPackage ../development/python-modules/pyscreenshot { };
|
||||
|
||||
pyside = callPackage ../development/python-modules/pyside {
|
||||
inherit (pkgs) mesa;
|
||||
};
|
||||
@ -1155,12 +1159,16 @@ in {
|
||||
|
||||
pytest-pylint = callPackage ../development/python-modules/pytest-pylint { };
|
||||
|
||||
pytest-qt = callPackage ../development/python-modules/pytest-qt { };
|
||||
|
||||
pytest-testmon = callPackage ../development/python-modules/pytest-testmon { };
|
||||
|
||||
pytest-tornado = callPackage ../development/python-modules/pytest-tornado { };
|
||||
|
||||
pytest-xprocess = callPackage ../development/python-modules/pytest-xprocess { };
|
||||
|
||||
pytest-xvfb = callPackage ../development/python-modules/pytest-xvfb { };
|
||||
|
||||
pytmx = callPackage ../development/python-modules/pytmx { };
|
||||
|
||||
python-binance = callPackage ../development/python-modules/python-binance { };
|
||||
@ -5264,6 +5272,8 @@ in {
|
||||
|
||||
tiros = callPackage ../development/python-modules/tiros { };
|
||||
|
||||
tinydb = callPackage ../development/python-modules/tinydb { };
|
||||
|
||||
tifffile = callPackage ../development/python-modules/tifffile { };
|
||||
|
||||
tmdb3 = callPackage ../development/python-modules/tmdb3 { };
|
||||
|
Loading…
Reference in New Issue
Block a user