python3Packages.boxx: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-04-26 13:29:51 +02:00 committed by GitHub
parent 7e2dc25cd1
commit debfa6723c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,16 +13,20 @@
, pyopengl , pyopengl
, seaborn , seaborn
, pytorch , pytorch
, pythonOlder
, torchvision , torchvision
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "boxx"; pname = "boxx";
version = "0.10.0"; version = "0.10.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-1Q6wCloOCfyDmvC8VbK6GgfnxuliJ6Ze7UEvsNFBVa0="; hash = "sha256-1Q6wCloOCfyDmvC8VbK6GgfnxuliJ6Ze7UEvsNFBVa0=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -37,19 +41,22 @@ buildPythonPackage rec {
seaborn seaborn
]; ];
pythonImportsCheck = [ "boxx" ];
checkInputs = [ checkInputs = [
xvfb-run xvfb-run
pytorch pytorch
torchvision torchvision
]; ];
pythonImportsCheck = [
"boxx"
];
checkPhase = '' checkPhase = ''
xvfb-run ${python.interpreter} -m unittest xvfb-run ${python.interpreter} -m unittest
''; '';
meta = with lib; { 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"; homepage = "https://github.com/DIYer22/boxx";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ lucasew ]; maintainers = with maintainers; [ lucasew ];