c25d0cde24
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.
29 lines
632 B
Nix
29 lines
632 B
Nix
{ 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 ];
|
|
};
|
|
}
|