`buildDotnetModule`: add support for installing pre-release tools (#374663)
[NixPkgs.git] / pkgs / development / python-modules / decopatch / default.nix
blobec263a48aa090437758017429727438333f3d8e7
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   makefun,
6   setuptools-scm,
7   pythonOlder,
8 }:
10 buildPythonPackage rec {
11   pname = "decopatch";
12   version = "1.4.10";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-lX9JyT9BUBgsI/j7UdE7syE+DxenngnIzKcFdZi1VyA=";
20   };
22   nativeBuildInputs = [ setuptools-scm ];
24   propagatedBuildInputs = [ makefun ];
26   postPatch = ''
27     substituteInPlace setup.cfg \
28       --replace "pytest-runner" ""
29   '';
31   pythonImportsCheck = [ "decopatch" ];
33   # Tests would introduce multiple cirucular dependencies
34   # Affected: makefun, pytest-cases
35   doCheck = false;
37   meta = with lib; {
38     description = "Python helper for decorators";
39     homepage = "https://github.com/smarie/python-decopatch";
40     license = licenses.bsd3;
41     maintainers = with maintainers; [ fab ];
42   };