From 950bd2aa0b4286db62338de3678212cf6bc40c26 Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Sun, 31 Dec 2023 11:23:55 -0800 Subject: [PATCH] python311Packages.vacuum-map-parser-base: init at 0.1.2 --- .../vacuum-map-parser-base/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/vacuum-map-parser-base/default.nix diff --git a/pkgs/development/python-modules/vacuum-map-parser-base/default.nix b/pkgs/development/python-modules/vacuum-map-parser-base/default.nix new file mode 100644 index 000000000000..c8da611f1ed8 --- /dev/null +++ b/pkgs/development/python-modules/vacuum-map-parser-base/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchFromGitHub +, poetry-core +, pillow +}: + +buildPythonPackage rec { + pname = "vacuum-map-parser-base"; + version = "0.1.2"; + pyproject = true; + + disabled = pythonOlder "3.11"; + + src = fetchFromGitHub { + owner = "PiotrMachowski"; + repo = "Python-package-${pname}"; + rev = "refs/tags/v${version}"; + hash = "sha256-moCWUPzn9stxehVEnjqpx8ILYhxzuy8QG+uxR53rCew="; + }; + + nativeBuildInputs = [ poetry-core ]; + + propagatedBuildInputs = [ pillow ]; + + # No tests + doCheck = false; + + pythonImportsCheck = [ "vacuum_map_parser_base" ]; + + meta = with lib; { + homepage = "https://github.com/PiotrMachowski/Python-package-vacuum-map-parser-base"; + description = "Common code for vacuum map parsers"; + changelog = "https://github.com/PiotrMachowski/Python-package-vacuum-map-parser-base/releases/tag/v${version}"; + maintainers = with maintainers; [ jamiemagee ]; + license = licenses.asl20; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 590b897eb2ac..44123e837f64 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15683,6 +15683,8 @@ self: super: with self; { vaa = callPackage ../development/python-modules/vaa { }; + vacuum-map-parser-base = callPackage ../development/python-modules/vacuum-map-parser-base { }; + validate-email = callPackage ../development/python-modules/validate-email { }; validators = callPackage ../development/python-modules/validators { };