2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
isPyPy,
|
|
|
|
isPy3k,
|
|
|
|
python,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
version = "0.99.2dev-384-2b73caca";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
mkdir -p "$out/${python.sitePackages}"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
${python}/bin/${python.executable} setup.py install \
|
2024-02-07 01:22:34 +00:00
|
|
|
--install-lib=$out/${python.sitePackages} \
|
2020-04-24 23:36:52 +00:00
|
|
|
--prefix="$out"
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
eapth="$out/${python.sitePackages}/easy-install.pth"
|
2020-04-24 23:36:52 +00:00
|
|
|
if [ -e "$eapth" ]; then
|
|
|
|
mv "$eapth" $(dirname "$eapth")/${pname}-${version}.pth
|
|
|
|
fi
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
rm -f "$out/${python.sitePackages}"/site.py*
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Generic application framework, providing the foundation for other modules";
|
|
|
|
homepage = "https://github.com/freevo/kaa-base";
|
|
|
|
license = licenses.lgpl21;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|