diff options
author | Martin Fischer <martin@push-f.com> | 2025-03-09 13:48:00 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2025-03-09 21:36:04 +0100 |
commit | 232f1499bb9a2cc85a63abcc1c22776ef77781fb (patch) | |
tree | 50b9b429140e6d597090e5d1264496555fd0edf7 /default.nix | |
parent | 42c737aa1a7731170e8369482f96b557a1bd7a36 (diff) |
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..d923d2e --- /dev/null +++ b/default.nix @@ -0,0 +1,27 @@ +{ pkgs ? import <nixpkgs> {} }: +with pkgs.python310Packages; + +let + pywikiapi = import ./deps/pywikiapi.nix { inherit pkgs; }; +in +buildPythonApplication rec { + pname = "osm-proposals"; + version = "git"; + src = ./.; + pyproject = true; + + build-system = [ + setuptools + ]; + + dependencies = [ + requests + mwparserfromhell + pywikiapi + ]; + + postInstall = '' + mkdir -p $out/share/osm-proposals + cp -r ${./static}/. $out/share/osm-proposals/ + ''; +} |