2021-03-09 03:18:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm, toml
|
2021-03-09 03:18:52 +00:00
|
|
|
, more-itertools
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jaraco.classes";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "3.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jaraco";
|
|
|
|
repo = "jaraco.classes";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0wzrcsxi9gb65inayg0drm08iaw37jm1lqxhz3860i6pwjh503pr";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-03 08:41:04 +00:00
|
|
|
pythonNamespaces = [ "jaraco" ];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm toml ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ more-itertools ];
|
|
|
|
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Utility functions for Python class constructs";
|
|
|
|
homepage = "https://github.com/jaraco/jaraco.classes";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|