1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 fetchpatch, 6 sh, 7}: 8 9buildPythonPackage rec { 10 pname = "python-packer"; 11 version = "0.1.2"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "fd363dae9bd2efd447739bbf7a4f29c1e4741596ae7b02d252fe525b2b4176e7"; 17 }; 18 19 patches = fetchpatch { 20 url = "${meta.homepage}/commit/de3421bf13bf7c3ec11fe0a381f0944e102b1d97.patch"; 21 excludes = [ "dev-requirements.txt" ]; 22 sha256 = "0rgmkyn7i6y1xs8m75dpl8hq7j2ns2s3dvp7kv9j4zwic93rrlsc"; 23 }; 24 25 propagatedBuildInputs = [ sh ]; 26 27 # Tests requires network connections 28 doCheck = false; 29 30 meta = with lib; { 31 description = "Interface for packer.io"; 32 homepage = "https://github.com/nir0s/python-packer"; 33 license = licenses.asl20; 34 maintainers = with maintainers; [ psyanticy ]; 35 }; 36}