nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

default.nix (977B)


      1 {
      2   lib,
      3   python3Packages,
      4   fetchFromGitHub,
      5 }:
      6 
      7 python3Packages.buildPythonPackage rec {
      8   pname = "osmviz";
      9   version = "4.4.0";
     10   pyproject = true;
     11 
     12   src = fetchFromGitHub {
     13     owner = "hugovk";
     14     repo = "osmviz";
     15     tag = version;
     16     hash = "sha256-rEbCMF5G4C/xJTEqO0XwV+VfoL63alh5IzjOdQ34NzU=";
     17   };
     18 
     19   build-system = with python3Packages; [
     20     hatchling
     21     hatch-vcs
     22   ];
     23 
     24   nativeCheckInputs = with python3Packages; [
     25     pytestCheckHook
     26     pytest-cov-stub
     27     coverage
     28     pillow
     29     pygame
     30   ];
     31 
     32   pytestFlagsArray = [
     33     "-W"
     34     "ignore::DeprecationWarning"
     35   ];
     36 
     37   disabledTests = [
     38     "test_pil"
     39     "test_retrieve_tile_image"
     40     "test_create_osm_image"
     41     "test_sim"
     42     "test_sim_one"
     43   ];
     44 
     45   pythonImportsCheck = [ "osmviz" ];
     46 
     47   meta = {
     48     description = "An OpenStreetMap Visualization Toolkit for Python";
     49     homepage = "https://github.com/hugovk/osmviz";
     50     license = lib.licenses.mit;
     51     maintainers = [ lib.maintainers.sikmir ];
     52   };
     53 }