summary refs log tree commit diff
path: root/pkgs/development/python-modules/dsmr-parser
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-04-21 23:52:59 +0200
committerFabian Affolter <mail@fabian-affolter.ch>2021-04-21 23:52:59 +0200
commitaf2ff60af0c083a8f890fbfc78fef0d571444d5a (patch)
treeaeb5995f2d84e808633ebc70ff1ec8491c2997c7 /pkgs/development/python-modules/dsmr-parser
parent5119a3386cf7f4209311d98c213299b44f5b70c5 (diff)
downloadnixpkgs-af2ff60af0c083a8f890fbfc78fef0d571444d5a.tar
nixpkgs-af2ff60af0c083a8f890fbfc78fef0d571444d5a.tar.gz
nixpkgs-af2ff60af0c083a8f890fbfc78fef0d571444d5a.tar.bz2
nixpkgs-af2ff60af0c083a8f890fbfc78fef0d571444d5a.tar.lz
nixpkgs-af2ff60af0c083a8f890fbfc78fef0d571444d5a.tar.xz
nixpkgs-af2ff60af0c083a8f890fbfc78fef0d571444d5a.tar.zst
nixpkgs-af2ff60af0c083a8f890fbfc78fef0d571444d5a.zip
python3Packages.dsmr-parser: init at 0.29
Diffstat (limited to 'pkgs/development/python-modules/dsmr-parser')
-rw-r--r--pkgs/development/python-modules/dsmr-parser/default.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/dsmr-parser/default.nix b/pkgs/development/python-modules/dsmr-parser/default.nix
new file mode 100644
index 00000000000..155927368ee
--- /dev/null
+++ b/pkgs/development/python-modules/dsmr-parser/default.nix
@@ -0,0 +1,41 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pyserial
+, pyserial-asyncio
+, pytestCheckHook
+, pytz
+, tailer
+}:
+
+buildPythonPackage rec {
+  pname = "dsmr-parser";
+  version = "0.29";
+
+  src = fetchFromGitHub {
+    owner = "ndokter";
+    repo = "dsmr_parser";
+    rev = "v${version}";
+    sha256 = "11d6cwmabzc8p6jkqwj72nrj7p6cxbvr0x3jdrxyx6zki8chyw4p";
+  };
+
+  propagatedBuildInputs = [
+    pyserial
+    pyserial-asyncio
+    pytz
+    tailer
+  ];
+
+  checkInputs = [
+    pytestCheckHook
+  ];
+
+  pythonImportsCheck = [ "dsmr_parser" ];
+
+  meta = with lib; {
+    description = "Python module to parse Dutch Smart Meter Requirements (DSMR)";
+    homepage = "https://github.com/ndokter/dsmr_parser";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ fab ];
+  };
+}