diff --git a/pkgs/development/python-modules/minimal-snowplow-tracker/default.nix b/pkgs/development/python-modules/minimal-snowplow-tracker/default.nix new file mode 100644 index 000000000000..a15f81014cfa --- /dev/null +++ b/pkgs/development/python-modules/minimal-snowplow-tracker/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, fetchPypi +, requests +, six +}: + +buildPythonPackage rec { + pname = "minimal-snowplow-tracker"; + version = "0.0.2"; + format = "setuptools"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-rKv3Vy2w5/XL9pg9SV7vVAgfcb45IzDrOq25zLOdqqQ="; + }; + + propagatedBuildInputs = [ + requests + six + ]; + + # has no tests + doCheck = false; + + pythonImportsCheck = [ + "snowplow_tracker" + ]; + + meta = with lib; { + description = "Minimal snowplow event tracker"; + homepage = "https://github.com/dbt-labs/snowplow-python-tracker"; + license = licenses.asl20; + maintainers = with maintainers; [ mausch tjni ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d50ca9d8b1da..41af11c7ad78 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6462,6 +6462,8 @@ self: super: with self; { minikerberos = callPackage ../development/python-modules/minikerberos { }; + minimal-snowplow-tracker = callPackage ../development/python-modules/minimal-snowplow-tracker { }; + minimock = callPackage ../development/python-modules/minimock { }; mininet-python = (toPythonModule (pkgs.mininet.override {