2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, enum34
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "absl-py";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "1.0.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-02-10 20:34:41 +00:00
|
|
|
sha256 = "ac511215c01ee9ae47b19716599e8ccfa746f2e18de72bdf641b79b22afa27ea";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
] ++ lib.optionals (pythonOlder "3.4") [
|
|
|
|
enum34
|
|
|
|
];
|
|
|
|
|
|
|
|
# checks use bazel; should be revisited
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Abseil Python Common Libraries";
|
|
|
|
homepage = "https://github.com/abseil/abseil-py";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ danharaj ];
|
|
|
|
};
|
|
|
|
}
|