diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2023-01-15 14:30:54 +0100 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2023-01-15 15:08:54 +0100 |
commit | c25d0cde24220840033ab1007e5b3b732825804e (patch) | |
tree | a2669b6d9404af4235bcd38883d8d9571905ef60 /pkgs/development/python-modules/opencensus-context | |
parent | 4ea83cec77fade2b709bbae9b42688266a6a50d0 (diff) |
python3.pkgs.opencensus-context: init at 0.1.3
Split package into top-level Python library. We need to propagate it just like any other package, otherwise dependents cannot detect it during installation. The __init__.py collide since it uses old-style namespaces so we get rid of those. In the future we may need to extend the namespaces. This was enough for my dependency opencensus-ext-azure. Having it as a top-level Python is just common practice; there is no good reason not to.
Diffstat (limited to 'pkgs/development/python-modules/opencensus-context')
-rw-r--r-- | pkgs/development/python-modules/opencensus-context/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/opencensus-context/default.nix b/pkgs/development/python-modules/opencensus-context/default.nix new file mode 100644 index 0000000000000..692b2c3079131 --- /dev/null +++ b/pkgs/development/python-modules/opencensus-context/default.nix @@ -0,0 +1,28 @@ +{ buildPythonPackage +, fetchPypi +, lib +, unittestCheckHook +}: + +buildPythonPackage rec { + pname = "opencensus-context"; + version = "0.1.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-oDEIw8ENjIC7Xd9cih8DMWH6YZcqmRf5ubOhhRfwCIw="; + }; + + pythonNamespaces = [ + "opencensus.common" + ]; + + doCheck = false; # No tests in archive + + meta = with lib; { + description = "OpenCensus Runtime Context"; + homepage = "https://github.com/census-instrumentation/opencensus-python/tree/master/context/opencensus-context"; + license = licenses.asl20; + maintainers = with maintainers; [ billhuang ]; + }; +} |