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