about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/characteristic/default.nix
blob: ae86e18865153491c55ce4a9969239ba11e11bac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ buildPythonPackage
, fetchPypi
, pytest
}:

buildPythonPackage rec {
  pname = "characteristic";
  version = "14.3.0";
  src = fetchPypi {
    inherit pname version;
    sha256 = "ded68d4e424115ed44e5c83c2a901a0b6157a959079d7591d92106ffd3ada380";
  };

  nativeCheckInputs = [ pytest ];

  postPatch = ''
    substituteInPlace setup.cfg --replace "[pytest]" "[tool:pytest]"
  '';

  meta = {
    description = "Python attributes without boilerplate";
    homepage = "https://characteristic.readthedocs.org";
  };
}