mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 09:04:16 +01:00
This is almost all find-and-replace. I manually edited: * pkgs/development/python-modules/notifications-android-tv/default.nix, * pkgs/servers/home-assistant/default.nix, * pkgs/development/tools/continuous-integration/buildbot/master.nix A few files have not been changed in this PR because they would cause rebuilds. This PR should have 0 rebuilds.
44 lines
983 B
Nix
44 lines
983 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
setuptools,
|
|
toml,
|
|
functiontrace-server,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "functiontrace";
|
|
version = "0.5.1";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-yRzcg8BDuwF74J2EYa/3GMkTaRGsx0WyDIQEWHwj12M=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
toml
|
|
];
|
|
|
|
pythonImportsCheck = [ "functiontrace" ];
|
|
|
|
# `functiontrace` needs `functiontrace-server` in its path.
|
|
# Technically we also need this when running via a Python import, such as for
|
|
# `python3 -m functiontrace`, but that's a less common use-case.
|
|
postFixup = ''
|
|
wrapProgram $out/bin/functiontrace \
|
|
--prefix PATH : ${lib.makeBinPath [ functiontrace-server ]}
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://functiontrace.com";
|
|
description = "Python module for Functiontrace";
|
|
license = lib.licenses.prosperity30;
|
|
maintainers = with lib.maintainers; [
|
|
mathiassven
|
|
tehmatt
|
|
];
|
|
};
|
|
}
|