diff options
author | Chris Ostrouchov <chris.ostrouchov@gmail.com> | 2018-10-26 09:39:54 -0400 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-10-27 09:07:20 +0200 |
commit | 908c78f32cfee261573c707b698c88f875775b7c (patch) | |
tree | 7392a4ba2bd37fed8a17ddf6f7460533548ae82a /pkgs/development/python-modules/kaa-base/default.nix | |
parent | b0bc759a464bd5121d7df8e44498abb3e6f6f304 (diff) |
pythonPackages.kaa-base: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules/kaa-base/default.nix')
-rw-r--r-- | pkgs/development/python-modules/kaa-base/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/kaa-base/default.nix b/pkgs/development/python-modules/kaa-base/default.nix new file mode 100644 index 0000000000000..f0994cebe1115 --- /dev/null +++ b/pkgs/development/python-modules/kaa-base/default.nix @@ -0,0 +1,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; [ ]; + }; + +} |