default.nix (840B)
1 { 2 lib, 3 stdenv, 4 python3Packages, 5 fetchFromGitHub, 6 maprec, 7 }: 8 9 python3Packages.buildPythonPackage { 10 pname = "ozi_map"; 11 version = "0-unstable-2022-08-05"; 12 13 src = fetchFromGitHub { 14 owner = "wladich"; 15 repo = "ozi_map"; 16 rev = "abd9e86d621ef5de89986e92b9e97e54b3173af4"; 17 hash = "sha256-leYn+Z0BLptvtmHglwvmhzjHUZh0XEZ9LEBQHDCjfNc="; 18 }; 19 20 postPatch = '' 21 substituteInPlace setup.py \ 22 --replace-fail " @ git+https://github.com/wladich/maprec.git" "" 23 ''; 24 25 dependencies = with python3Packages; [ 26 maprec 27 pyproj 28 ]; 29 30 doCheck = false; 31 32 pythonImportsCheck = [ "ozi_map" ]; 33 34 meta = { 35 description = "Python module for reading OziExplorer .map files"; 36 homepage = "https://github.com/wladich/ozi_map"; 37 license = lib.licenses.free; 38 maintainers = [ lib.maintainers.sikmir ]; 39 }; 40 }