Python tool for aircraft Doppler audio geolocation using historical ADS-B flight data (Source-available)
Python acoustic-geolocationads-baircraft-trackingairplaneaudio-forensicsdoppler-effectdoppler-shiftgeolocationosintsignal-processing
added development nix flake
Eirik Askheimde0c52cc1b30
diff --git a/flake.lock b/flake.locknew file mode 100644index 0000000..3ed7a64--- /dev/null+++ b/flake.lock@@ -0,0 +1,27 @@+{+ "nodes": {+ "nixpkgs": {+ "locked": {+ "lastModified": 1793540411,+ "narHash": "sha256-fiPJ88izTVucjeo2EQ3jk4aWmLg03I1D4vxnX2QjEgE=",+ "owner": "NixOS",+ "repo": "nixpkgs",+ "rev": "0bb2eedc20e4739f29e8045034f2828ad7054f8f",+ "type": "github"+ },+ "original": {+ "owner": "NixOS",+ "ref": "nixos-unstable",+ "repo": "nixpkgs",+ "type": "github"+ }+ },+ "root": {+ "inputs": {+ "nixpkgs": "nixpkgs"+ }+ }+ },+ "root": "root",+ "version": 7+}diff --git a/flake.nix b/flake.nixnew file mode 100644index 0000000..d700099--- /dev/null+++ b/flake.nix@@ -0,0 +1,72 @@+{+ description = "DOPPLERGEIST development environment (Python 3.12 + ffmpeg + geospatial/audio system libs)";++ inputs = {+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";+ };++ outputs = { self, nixpkgs }:+ let+ systems = [+ "x86_64-linux"+ "aarch64-linux"+ "x86_64-darwin"+ "aarch64-darwin"+ ];+ forEachSystem = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});+ in+ {+ devShells = forEachSystem (pkgs:+ let+ python = pkgs.python312;+ in+ {+ default = pkgs.mkShell {+ name = "dopplergeist-dev";++ packages = [+ python+ pkgs.ffmpeg # provides ffmpeg + ffprobe (libmp3lame encoder needed by MP3 smoke tests)+ pkgs.gh # GitHub CLI, needed for checkpoint-asset downloads+ pkgs.git+ pkgs.pkg-config+ pkgs.stdenv.cc+ # Native libraries behind the pip dependencies in pyproject.toml+ # (rasterio -> GDAL/PROJ/GEOS/HDF5/netCDF, soundfile -> libsndfile,+ # scipy/numpy -> OpenBLAS, matplotlib -> freetype).+ pkgs.gdal+ pkgs.proj+ pkgs.geos+ pkgs.hdf5+ pkgs.netcdf+ pkgs.libsndfile+ pkgs.fftw+ pkgs.openblas+ pkgs.freetype+ pkgs.zlib+ ];++ shellHook = ''+ # Pinned manylinux wheels (e.g. rasterio) need libz/libstdc+++ # from outside the venv; Nix does not put them on the loader+ # path by default.+ export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath [ pkgs.zlib pkgs.expat pkgs.stdenv.cc.cc ]}:''${LD_LIBRARY_PATH:-}"+ # Match the CI/threading defaults in .github/workflows.+ export MPLBACKEND="''${MPLBACKEND:-Agg}"+ export PYTHONUNBUFFERED="''${PYTHONUNBUFFERED:-1}"+ export OPENBLAS_NUM_THREADS="''${OPENBLAS_NUM_THREADS:-1}"+ export OMP_NUM_THREADS="''${OMP_NUM_THREADS:-1}"++ # Let pip builds find the Nix-provided native libraries.+ export GDAL_DATA="${pkgs.gdal}/share/gdal"+ export PROJ_DATA="${pkgs.proj}/share/proj"+ export PKG_CONFIG_PATH="${pkgs.libsndfile}/lib/pkgconfig:${pkgs.hdf5}/lib/pkgconfig:''${PKG_CONFIG_PATH:-}"++ echo "DOPPLERGEIST dev shell: $(python --version 2>&1), $(ffmpeg -version 2>/dev/null | head -1)"+ echo "Create an isolated env per docs/SETUP.md:"+ echo " python -m venv .venv && .venv/bin/python -m pip install -e . && .venv/bin/dopplergeist --version"+ '';+ };+ });+ };+}