1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 cython, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "rectangle-packer"; 12 version = "2.0.4"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "Penlect"; 17 repo = "rectangle-packer"; 18 rev = version; 19 hash = "sha256-Tm1ZkWTecmQDGsTOa1AP2GtjdxVgxklLIYSBlTSfSiY="; 20 }; 21 22 build-system = [ 23 cython 24 setuptools 25 ]; 26 27 pythonImportsCheck = [ "rpack" ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 preCheck = '' 32 rm -r rpack 33 ''; 34 35 meta = with lib; { 36 description = "Pack a set of rectangles into a bounding box with minimum area"; 37 homepage = "https://github.com/Penlect/rectangle-packer"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ fbeffa ]; 40 }; 41}