libfmvoice: 0-unstable-2024-11-08 -> 0-unstable-2024-12-11 (#364919)
[NixPkgs.git] / pkgs / development / python-modules / kaa-base / default.nix
blobac4b1cf52f737cb82d9bdbf2ccffed53140927a7
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   isPyPy,
6   isPy3k,
7   python,
8 }:
10 buildPythonPackage rec {
11   version = "0.99.2dev-384-2b73caca";
12   format = "setuptools";
13   pname = "kaa-base";
15   src = fetchPypi {
16     inherit pname version;
17     sha256 = "0k3zzz84wzz9q1fl3vvqr2ys96z9pcf4viq9q6s2a63zaysmcfd2";
18   };
20   doCheck = false;
22   disabled = isPyPy || isPy3k;
24   # Same as in buildPythonPackage except that it does not pass --old-and-unmanageable
25   installPhase = ''
26     runHook preInstall
28     mkdir -p "$out/${python.sitePackages}"
30     export PYTHONPATH="$out/${python.sitePackages}:$PYTHONPATH"
32     ${python}/bin/${python.executable} setup.py install \
33       --install-lib=$out/${python.sitePackages} \
34       --prefix="$out"
36     eapth="$out/${python.sitePackages}/easy-install.pth"
37     if [ -e "$eapth" ]; then
38     mv "$eapth" $(dirname "$eapth")/${pname}-${version}.pth
39     fi
41     rm -f "$out/${python.sitePackages}"/site.py*
43     runHook postInstall
44   '';
46   meta = with lib; {
47     description = "Generic application framework, providing the foundation for other modules";
48     homepage = "https://github.com/freevo/kaa-base";
49     license = licenses.lgpl21;
50     maintainers = [ ];
51   };