about summary refs log tree commit diff
path: root/pkgs/development/python-modules/zope_lifecycleevent/default.nix
blob: 1d230c732bb804b21d79569cd1fea72a8a945ef6 (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
{ lib
, buildPythonPackage
, fetchPypi
, isPy3k
, zope_event
, zope_component
}:

buildPythonPackage rec {
  pname = "zope.lifecycleevent";
  version = "4.4";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-9ahU6J/5fe6ke/vqN4u77yeJ0uDMkKHB2lfZChzmfLU=";
  };

  propagatedBuildInputs = [ zope_event zope_component ];

  # namespace colides with local directory
  doCheck = false;

  # zope uses pep 420 namespaces for python3, doesn't work with nix + python2
  pythonImportsCheck = lib.optionals isPy3k [
    "zope.lifecycleevent"
    "zope.interface"
  ];

  meta = with lib; {
    homepage = "https://github.com/zopefoundation/zope.lifecycleevent";
    description = "Object life-cycle events";
    license = licenses.zpl20;
    maintainers = with maintainers; [ goibhniu ];
  };

}