Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchFromGitHub, isPy27 2, setuptools-scm 3, more-itertools 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "jaraco.classes"; 9 version = "3.1.1"; 10 disabled = isPy27; 11 12 src = fetchFromGitHub { 13 owner = "jaraco"; 14 repo = "jaraco.classes"; 15 rev = "v${version}"; 16 sha256 = "0wzrcsxi9gb65inayg0drm08iaw37jm1lqxhz3860i6pwjh503pr"; 17 }; 18 19 pythonNamespaces = [ "jaraco" ]; 20 21 SETUPTOOLS_SCM_PRETEND_VERSION = version; 22 23 nativeBuildInputs = [ setuptools-scm ]; 24 25 propagatedBuildInputs = [ more-itertools ]; 26 27 nativeCheckInputs = [ pytestCheckHook ]; 28 29 meta = with lib; { 30 description = "Utility functions for Python class constructs"; 31 homepage = "https://github.com/jaraco/jaraco.classes"; 32 license = licenses.mit; 33 }; 34}