depot/third_party/nixpkgs/pkgs/development/python-modules/characteristic/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

25 lines
542 B
Nix

{ buildPythonPackage
, fetchPypi
, pytest
}:
buildPythonPackage rec {
pname = "characteristic";
version = "14.3.0";
format = "setuptools";
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";
};
}