2017-11-14 20:27:13 +01:00
|
|
|
{ buildPythonPackage
|
|
|
|
, lib
|
2018-12-19 23:19:16 +01:00
|
|
|
, pythonOlder
|
2017-11-14 20:27:13 +01:00
|
|
|
, fetchPypi
|
|
|
|
, six
|
2018-12-19 23:19:16 +01:00
|
|
|
, enum34
|
2017-11-14 20:27:13 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "absl-py";
|
2019-04-16 19:15:33 +02:00
|
|
|
version = "0.7.1";
|
2017-11-14 20:27:13 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-16 19:15:33 +02:00
|
|
|
sha256 = "b943d1c567743ed0455878fcd60bc28ac9fae38d129d1ccfad58079da00b8951";
|
2017-11-14 20:27:13 +01:00
|
|
|
};
|
|
|
|
|
2018-12-19 23:19:16 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
six
|
|
|
|
] ++ lib.optionals (pythonOlder "3.4") [
|
|
|
|
enum34
|
|
|
|
];
|
2017-11-14 20:27:13 +01:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|