1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, zope_event
6, zope_component
7, zope_interface
8}:
9
10buildPythonPackage rec {
11 pname = "zope.lifecycleevent";
12 version = "4.3";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "7ec39087cc1524e55557e7d9dc6295eb1b95b09b125e293c0e2dd068574f0aee";
17 };
18
19 propagatedBuildInputs = [ zope_event zope_component ];
20
21 # namespace colides with local directory
22 doCheck = false;
23
24 # zope uses pep 420 namespaces for python3, doesn't work with nix + python2
25 pythonImportsCheck = stdenv.lib.optionals isPy3k [
26 "zope.lifecycleevent"
27 "zope.interface"
28 ];
29
30 meta = with stdenv.lib; {
31 homepage = "https://github.com/zopefoundation/zope.lifecycleevent";
32 description = "Object life-cycle events";
33 license = licenses.zpl20;
34 maintainers = with maintainers; [ goibhniu ];
35 };
36
37}