Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / multimethod / default.nix
blobcc0ec79acdfed9f4bded3ec773367b46f6e9295a
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , setuptools
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "multimethod";
11   version = "1.9.1";
12   format = "pyproject";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "coady";
18     repo = pname;
19     rev = "refs/tags/v${version}";
20     hash = "sha256-KfO+6bZOZOv9SWTV4eqJTWb3/PeCpnXknSF47ddZR5o=";
21   };
23   nativeBuildInputs = [
24     setuptools
25   ];
27   nativeCheckInputs = [
28     pytestCheckHook
29   ];
31   pythonImportsCheck = [
32     "multimethod"
33   ];
35   meta = with lib; {
36     description = "Multiple argument dispatching";
37     homepage = "https://coady.github.io/multimethod/";
38     changelog = "https://github.com/coady/multimethod/tree/v${version}#changes";
39     license = licenses.asl20;
40     maintainers = [ ];
41   };