nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 33 lines 679 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6}: 7 8buildPythonPackage rec { 9 pname = "rectpack"; 10 version = "0.2.2"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "secnot"; 15 repo = "rectpack"; 16 rev = version; 17 hash = "sha256-kU0TT3wiudcLXrT+lYPYHYRtf7aNj/IKpnYKb/H91ng="; 18 }; 19 20 build-system = [ setuptools ]; 21 22 # tests are base on nose 23 doCheck = false; 24 25 pythonImportsCheck = [ "rectpack" ]; 26 27 meta = { 28 description = "Collection of algorithms for solving the 2D knapsack problem"; 29 homepage = "https://github.com/secnot/rectpack"; 30 license = lib.licenses.asl20; 31 maintainers = with lib.maintainers; [ fbeffa ]; 32 }; 33}