blob: d923d2e3d3ccedc6c27773ee3252959aa2f613cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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/
'';
}
|