nixpkgs/pkgs/development/python-modules/jaraco_classes/default.nix
Sandro Jäckel ab126c9a62 python3Packages: provide setuptools-scm with toml[i] by default and remove duplicated toml packages
Some packages seem to still require toml despite setuptools-scm having switched to tomli.
If it is missing the version number in dist.into is set to 0.0.0 and silently all version pins break.
2021-09-05 15:00:10 +02:00

34 lines
771 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 ];
checkInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Utility functions for Python class constructs";
homepage = "https://github.com/jaraco/jaraco.classes";
license = licenses.mit;
};
}