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