Files
nixpkgs/pkgs/development/python-modules/opencensus/default.nix
T
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

41 lines
804 B
Nix

{ buildPythonPackage
, fetchPypi
, lib
, unittestCheckHook
, google-api-core
, opencensus-context
}:
buildPythonPackage rec {
pname = "opencensus";
version = "0.11.3";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-r3qYvVHmOWgUTXcvNG1pbtSYoy29xL4mfNYBHEzgXag=";
};
propagatedBuildInputs = [
google-api-core
opencensus-context
];
pythonNamespaces = [
"opencensus.common"
];
doCheck = false; # No tests in sdist
pythonImportsCheck = [
"opencensus.common"
];
meta = with lib; {
description = "A stats collection and distributed tracing framework";
homepage = "https://github.com/census-instrumentation/opencensus-python";
license = licenses.asl20;
maintainers = with maintainers; [ billhuang ];
};
}