2021-02-28 09:24:18 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
|
|
|
|
, setuptools_scm, toml
|
|
|
|
, more-itertools
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2018-09-03 01:17:36 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jaraco.classes";
|
2021-02-20 09:09:10 +00:00
|
|
|
version = "3.1.1";
|
2020-04-07 04:51:05 +01:00
|
|
|
disabled = isPy27;
|
2019-12-20 17:31:35 +00:00
|
|
|
|
2021-02-28 09:24:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jaraco";
|
|
|
|
repo = "jaraco.classes";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0wzrcsxi9gb65inayg0drm08iaw37jm1lqxhz3860i6pwjh503pr";
|
2018-09-03 01:17:36 +01:00
|
|
|
};
|
2019-12-20 17:31:35 +00:00
|
|
|
|
2021-03-01 16:50:19 +00:00
|
|
|
pythonNamespaces = [ "jaraco" ];
|
|
|
|
|
2021-02-28 09:24:18 +00:00
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
2020-11-20 18:54:20 +00:00
|
|
|
|
2021-02-28 09:24:18 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm toml ];
|
2019-12-20 17:31:35 +00:00
|
|
|
|
2021-02-28 09:24:18 +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;
|
|
|
|
};
|
2018-09-03 01:17:36 +01:00
|
|
|
}
|