Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / decopatch / default.nix
blob71e302a8b538a12d79f1498fea0e5d006ffbd140
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , makefun
5 , setuptools-scm
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "decopatch";
11   version = "1.4.10";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchPypi {
17     inherit pname version;
18     hash = "sha256-lX9JyT9BUBgsI/j7UdE7syE+DxenngnIzKcFdZi1VyA=";
19   };
21   nativeBuildInputs = [
22     setuptools-scm
23   ];
25   propagatedBuildInputs = [
26     makefun
27   ];
29   postPatch = ''
30     substituteInPlace setup.cfg \
31       --replace "pytest-runner" ""
32   '';
34   pythonImportsCheck = [
35     "decopatch"
36   ];
38   # Tests would introduce multiple cirucular dependencies
39   # Affected: makefun, pytest-cases
40   doCheck = false;
42   meta = with lib; {
43     description = "Python helper for decorators";
44     homepage = "https://github.com/smarie/python-decopatch";
45     license = licenses.bsd3;
46     maintainers = with maintainers; [ fab ];
47   };