summary refs log tree commit diff
path: root/pkgs/development/python-modules/metar
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-02-13 15:16:35 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-02-13 15:16:35 +0100
commit4d2f44992c508a38e781abea0b02ad9395d7da9f (patch)
tree91215244c683ef4ec381fb12b290b50233a8be74 /pkgs/development/python-modules/metar
parent5852a21819542e6809f68ba5a798600e69874e76 (diff)
downloadnixpkgs-4d2f44992c508a38e781abea0b02ad9395d7da9f.tar
nixpkgs-4d2f44992c508a38e781abea0b02ad9395d7da9f.tar.gz
nixpkgs-4d2f44992c508a38e781abea0b02ad9395d7da9f.tar.bz2
nixpkgs-4d2f44992c508a38e781abea0b02ad9395d7da9f.tar.lz
nixpkgs-4d2f44992c508a38e781abea0b02ad9395d7da9f.tar.xz
nixpkgs-4d2f44992c508a38e781abea0b02ad9395d7da9f.tar.zst
nixpkgs-4d2f44992c508a38e781abea0b02ad9395d7da9f.zip
python3Packages.metar: init at 1.8.0
Diffstat (limited to 'pkgs/development/python-modules/metar')
-rw-r--r--pkgs/development/python-modules/metar/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/metar/default.nix b/pkgs/development/python-modules/metar/default.nix
new file mode 100644
index 00000000000..e832c7cf56f
--- /dev/null
+++ b/pkgs/development/python-modules/metar/default.nix
@@ -0,0 +1,28 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "metar";
+  version = "1.8.0";
+
+  src = fetchFromGitHub {
+    owner = "python-metar";
+    repo = "python-metar";
+    rev = "v${version}";
+    sha256 = "019vfq9191cdvvq1afdcdgdgbzpj7wq6pz9li8ggim71azjnv5nn";
+  };
+
+  checkInputs = [ pytestCheckHook ];
+
+  pythonImportsCheck = [ "metar" ];
+
+  meta = with lib; {
+    description = "Python parser for coded METAR weather reports";
+    homepage = "https://github.com/python-metar/python-metar";
+    license = with licenses; [ bsd1 ];
+    maintainers = with maintainers; [ fab ];
+  };
+}