Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 34 lines 722 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, six 5, setuptools-scm 6, toml 7}: 8 9buildPythonPackage rec { 10 pname = "singledispatch"; 11 version = "3.6.1"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "58b46ce1cc4d43af0aac3ac9a047bdb0f44e05f0b2fa2eec755863331700c865"; 16 }; 17 18 nativeBuildInputs = [ 19 setuptools-scm 20 toml 21 ]; 22 23 propagatedBuildInputs = [ six ]; 24 25 # pypi singledispatch tarbal does not contain tests 26 doCheck = false; 27 28 meta = { 29 description = "This library brings functools.singledispatch from Python 3.4 to Python 2.6-3.3."; 30 homepage = "https://docs.python.org/3/library/functools.html"; 31 license = lib.licenses.mit; 32 maintainers = with lib.maintainers; [ costrouc ]; 33 }; 34}