checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
35 lines
777 B
Nix
35 lines
777 B
Nix
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
|
|
, setuptools-scm
|
|
, more-itertools
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jaraco.classes";
|
|
version = "3.1.1";
|
|
disabled = isPy27;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jaraco";
|
|
repo = "jaraco.classes";
|
|
rev = "v${version}";
|
|
sha256 = "0wzrcsxi9gb65inayg0drm08iaw37jm1lqxhz3860i6pwjh503pr";
|
|
};
|
|
|
|
pythonNamespaces = [ "jaraco" ];
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
propagatedBuildInputs = [ more-itertools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = with lib; {
|
|
description = "Utility functions for Python class constructs";
|
|
homepage = "https://github.com/jaraco/jaraco.classes";
|
|
license = licenses.mit;
|
|
};
|
|
}
|