nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 41 lines 784 B view raw
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.5"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "Penlect"; 17 repo = "rectangle-packer"; 18 rev = version; 19 hash = "sha256-BHFy88yrcfDRalvrzwUHseSKmQXIM70ginnd+W6LVLY="; 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 = { 36 description = "Pack a set of rectangles into a bounding box with minimum area"; 37 homepage = "https://github.com/Penlect/rectangle-packer"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ fbeffa ]; 40 }; 41}