1{ buildPythonPackage
2, fetchPypi
3, pytest
4}:
5
6buildPythonPackage rec {
7 pname = "characteristic";
8 version = "14.3.0";
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "ded68d4e424115ed44e5c83c2a901a0b6157a959079d7591d92106ffd3ada380";
12 };
13
14 nativeCheckInputs = [ pytest ];
15
16 postPatch = ''
17 substituteInPlace setup.cfg --replace "[pytest]" "[tool:pytest]"
18 '';
19
20 meta = {
21 description = "Python attributes without boilerplate";
22 homepage = "https://characteristic.readthedocs.org";
23 };
24}