Merge pull request #268047 from a-n-n-a-l-e-e/bbox-fix

python311Packages.bbox: pyproject = true; fix build, use fetchFromGitHub enable tests
This commit is contained in:
Robert Scott
2023-11-17 22:22:33 +00:00
committed by GitHub
@@ -1,23 +1,40 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, pyquaternion
, matplotlib
, numpy
, pendulum
, pillow
, poetry-core
, pyquaternion
}:
buildPythonPackage rec {
pname = "bbox";
version = "0.9.4";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-GGQhKkdwmrYPEhtldPY3WUInSniU/B40NZvt1gXEuzg=";
src = fetchFromGitHub {
owner = "varunagrawal";
repo = pname;
# matches 0.9.4 on PyPi + tests
rev = "d3f07ed0e38b6015cf4181e3b3edae6a263f8565";
hash = "sha256-FrJ8FhlqwmnEB/QvPlkDfqZncNGPhwY9aagM9yv1LGs=";
};
propagatedBuildInputs = [ pyquaternion numpy ];
buildInputs = [ poetry-core ];
nativeCheckInputs = [
matplotlib
pendulum
pillow
pytestCheckHook
];
pythonImportsCheck = [ "bbox" ];