@@ -0,0 +1,37 @@
1+{ lib
2+, buildPythonPackage
3+, fetchPypi
4+, makefun
5+, setuptools-scm
6+}:
7+
8+buildPythonPackage rec {
9+ pname = "decopatch";
10+ version = "1.4.8";
11+
12+ src = fetchPypi {
13+ inherit pname version;
14+ sha256 = "0i6i811s2j1z0cl6y177dwsbfxib8dvb5c2jpgklvc2xy4ahhsy6";
15+ };
16+
17+ nativeBuildInputs = [ setuptools-scm ];
18+
19+ propagatedBuildInputs = [ makefun ];
20+
21+ postPatch = ''
22+ substituteInPlace setup.py --replace "'pytest-runner', " ""
23+ '';
24+
25+ # Tests would introduce multiple cirucular dependencies
26+ # Affected: makefun, pytest-cases
27+ doCheck = false;
28+
29+ pythonImportsCheck = [ "decopatch" ];
30+
31+ meta = with lib; {
32+ description = "Python helper for decorators";
33+ homepage = "https://github.com/smarie/python-decopatch";
34+ license = licenses.bsd3;
35+ maintainers = with maintainers; [ fab ];
36+ };
37+}