2022-06-16 17:23:12 +00:00
|
|
|
{ lib
|
|
|
|
, async-timeout
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-06-26 10:26:21 +00:00
|
|
|
, imageio
|
|
|
|
, imutils
|
2022-06-16 17:23:12 +00:00
|
|
|
, pythonOlder
|
|
|
|
, requests
|
|
|
|
, urllib3
|
2022-06-26 10:26:21 +00:00
|
|
|
, tqdm
|
2022-06-16 17:23:12 +00:00
|
|
|
, validators
|
|
|
|
, yarl
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dremel3dpy";
|
2022-06-26 10:26:21 +00:00
|
|
|
version = "1.0.1";
|
2022-06-16 17:23:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-06-26 10:26:21 +00:00
|
|
|
hash = "sha256-wqfCzS9dhRN/zerrC6g/O8tn0k1IC0wBdZMfWumtBds=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
async-timeout
|
2022-06-26 10:26:21 +00:00
|
|
|
imageio
|
|
|
|
imutils
|
2022-06-16 17:23:12 +00:00
|
|
|
requests
|
2022-06-26 10:26:21 +00:00
|
|
|
tqdm
|
2022-06-16 17:23:12 +00:00
|
|
|
urllib3
|
|
|
|
validators
|
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Ignore the pinning
|
|
|
|
sed -i -e "s/==[0-9.]*//" setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dremel3dpy"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Module for interacting with Dremel 3D printers";
|
|
|
|
homepage = "https://github.com/godely/dremel3dpy";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|