mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-30 17:10:18 +02:00
python3Packages.boxx: disable on older Python releases
This commit is contained in:
parent
7e2dc25cd1
commit
debfa6723c
|
@ -13,16 +13,20 @@
|
|||
, pyopengl
|
||||
, seaborn
|
||||
, pytorch
|
||||
, pythonOlder
|
||||
, torchvision
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "boxx";
|
||||
version = "0.10.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-1Q6wCloOCfyDmvC8VbK6GgfnxuliJ6Ze7UEvsNFBVa0=";
|
||||
hash = "sha256-1Q6wCloOCfyDmvC8VbK6GgfnxuliJ6Ze7UEvsNFBVa0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -37,19 +41,22 @@ buildPythonPackage rec {
|
|||
seaborn
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "boxx" ];
|
||||
checkInputs = [
|
||||
xvfb-run
|
||||
pytorch
|
||||
torchvision
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"boxx"
|
||||
];
|
||||
|
||||
checkPhase = ''
|
||||
xvfb-run ${python.interpreter} -m unittest
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Tool-box for efficient build and debug in Python. Especially for Scientific Computing and Computer Vision.";
|
||||
description = "Tool-box for efficient build and debug for Scientific Computing and Computer Vision";
|
||||
homepage = "https://github.com/DIYer22/boxx";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ lucasew ];
|
||||
|
|
Loading…
Reference in a new issue