depot/third_party/nixpkgs/pkgs/development/python-modules/kaa-base/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

52 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
isPyPy,
isPy3k,
python,
}:
buildPythonPackage rec {
version = "0.99.2dev-384-2b73caca";
format = "setuptools";
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/${python.sitePackages}"
export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
${python}/bin/${python.executable} setup.py install \
--install-lib=$out/${python.sitePackages} \
--prefix="$out"
eapth="$out/${python.sitePackages}/easy-install.pth"
if [ -e "$eapth" ]; then
mv "$eapth" $(dirname "$eapth")/${pname}-${version}.pth
fi
rm -f "$out/${python.sitePackages}"/site.py*
runHook postInstall
'';
meta = with lib; {
description = "Generic application framework, providing the foundation for other modules";
homepage = "https://github.com/freevo/kaa-base";
license = licenses.lgpl21;
maintainers = [ ];
};
}