summary refs log tree commit diff
path: root/pkgs/development/python-modules/plaster-pastedeploy/default.nix
blob: 84a85de82057d52d3fda2aec04d30899bdc9a02b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, buildPythonPackage
, fetchPypi
, fetchpatch
, plaster
, pastedeploy
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "plaster-pastedeploy";
  version = "0.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "c231130cb86ae414084008fe1d1797db7e61dc5eaafb5e755de21387c27c6fae";
  };

  patches = [
    # Fix tests compatibility with pastedeploy 2+
    # https://github.com/Pylons/plaster_pastedeploy/pull/17
    (fetchpatch {
      url = "https://github.com/Pylons/plaster_pastedeploy/commit/d77d81a57e917c67a20332beca8f418651172905.patch";
      sha256 = "0n5vnqn8kad41kn9grcwiic6c6rhvy1ji3w81s2v9xyk0bd9yryf";
    })
  ];

  propagatedBuildInputs = [ plaster pastedeploy ];

  checkInputs = [ pytestCheckHook ];

  meta = with lib; {
    description = "PasteDeploy binding to the plaster configuration loader";
    homepage = "https://github.com/Pylons/plaster_pastedeploy";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}