Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)
Python acoustic-geolocationads-baircraft-trackingairplaneaudio-forensicsdoppler-effectdoppler-shiftgeolocationosintsignal-processing
feat: flake support. (#236)
klein.c2e17d43e1f00
diff --git a/.gitignore b/.gitignoreindex 9d20eca..cf3188e 100644--- a/.gitignore+++ b/.gitignore@@ -7,4 +7,5 @@ __pycache__//dist//data//results/+/result!data/.gitkeepdiff --git a/flake.lock b/flake.locknew file mode 100644index 0000000..1e73ae9--- /dev/null+++ b/flake.lock@@ -0,0 +1,24 @@+{+ "nodes": {+ "nixpkgs": {+ "locked": {+ "lastModified": 1793706278,+ "narHash": "sha256-iCbwhLa+h23/rxGQD9YJJ+BrMYHCPKB6au/BsobNWB4=",+ "rev": "ea9e3ef341e11c193537f674f821a99f9f436729",+ "type": "tarball",+ "url": "https://releases.nixos.org/nixpkgs/nixpkgs-26.11pre1107593.ea9e3ef341e1/nixexprs.tar.zst"+ },+ "original": {+ "type": "tarball",+ "url": "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst"+ }+ },+ "root": {+ "inputs": {+ "nixpkgs": "nixpkgs"+ }+ }+ },+ "root": "root",+ "version": 7+}diff --git a/flake.nix b/flake.nixnew file mode 100644index 0000000..6c8f727--- /dev/null+++ b/flake.nix@@ -0,0 +1,24 @@+{+ description = "DOPPLERGEIST - A tool to geolocate audio recordings using aircraft Doppler shifts and historical flight tracks.";++ inputs = {+ nixpkgs.url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst";+ };++ outputs = inputs: {+ packages = builtins.mapAttrs (system: pkgs: {+ dopplergeist = pkgs.callPackage ./package.nix { };++ default = inputs.self.packages.${system}.dopplergeist;+ }) inputs.nixpkgs.legacyPackages;++ apps = builtins.mapAttrs (system: _: {+ default = {+ type = "app";+ program = "${inputs.self.packages.${system}.default}/bin/dopplergeist";+ };+ }) inputs.nixpkgs.legacyPackages;++ formatter = builtins.mapAttrs (_: pkgs: pkgs.nixfmt) inputs.nixpkgs.legacyPackages;+ };+}diff --git a/package.nix b/package.nixnew file mode 100644index 0000000..54507a0--- /dev/null+++ b/package.nix@@ -0,0 +1,54 @@+{+ lib,+ python314,+ ffmpeg,+ makeWrapper,+}:+python314.pkgs.buildPythonApplication {+ pname = "dopplergeist";+ version = "0.1.0";++ pyproject = true;++ src = lib.cleanSource ./.;++ build-system = with python314.pkgs; [ setuptools ];++ dependencies = with python314.pkgs; [+ numpy+ scipy+ pandas+ soundfile+ pyproj+ rasterio+ matplotlib+ requests+ pyarrow+ ];++ nativeBuildInputs = [+ makeWrapper+ ];++ postInstall = ''+ wrapProgram $out/bin/dopplergeist \+ --prefix PATH : ${+ lib.makeBinPath [+ ffmpeg+ ]+ }+ '';++ pythonImportsCheck = [+ "dopplergeist"+ ];++ meta = {+ description = "Aircraft acoustic geolocation using Doppler shifts";+ homepage = "https://github.com/1337isnot1337/DOPPLERGEIST";+ license = lib.licenses.mit;+ maintainers = with lib.maintainers; [ kleindotc ];+ mainProgram = "dopplergeist";+ platforms = lib.platforms.linux;+ };+}