summary refs log tree commit diff
path: root/pkgs/development/python-modules/kaa-base/default.nix
blob: f0994cebe11158bd1ebe2593c9196a87a96f7620 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
{ stdenv
, buildPythonPackage
, fetchPypi
, isPyPy
, isPy3k
, python
}:

buildPythonPackage rec {
  version = "0.99.2dev-384-2b73caca";
  pname = "kaa-base";

  src = fetchPypi {
    inherit pname version;
    sha256 = "0k3zzz84wzz9q1fl3vvqr2ys96z9pcf4viq9q6s2a63zaysmcfd2";
  };

  doCheck = false;

  disabled = isPyPy || isPy3k;

  # Same as in buildPythonPackage except that it does not pass --old-and-unmanageable
  installPhase = ''
    runHook preInstall

    mkdir -p "$out/lib/${python.libPrefix}/site-packages"

    export PYTHONPATH="$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH"

    ${python}/bin/${python.executable} setup.py install \
      --install-lib=$out/lib/${python.libPrefix}/site-packages \
      --prefix="$out"

    eapth="$out/lib/${python.libPrefix}"/site-packages/easy-install.pth
    if [ -e "$eapth" ]; then
    mv "$eapth" $(dirname "$eapth")/${pname}-${version}.pth
    fi

    rm -f "$out/lib/${python.libPrefix}"/site-packages/site.py*

    runHook postInstall
  '';

  meta = with stdenv.lib; {
    description = "Generic application framework, providing the foundation for other modules";
    homepage = https://github.com/freevo/kaa-base;
    license = licenses.lgpl21;
    maintainers = with maintainers; [ ];
  };

}