1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 00:54:11 +00:00
nixpkgs/pkgs/development/python-modules/characteristic/default.nix
2020-04-10 17:54:53 +01:00

25 lines
511 B
Nix

{ buildPythonPackage
, fetchPypi
, pytest
}:
buildPythonPackage rec {
pname = "characteristic";
version = "14.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "ded68d4e424115ed44e5c83c2a901a0b6157a959079d7591d92106ffd3ada380";
};
checkInputs = [ pytest ];
postPatch = ''
substituteInPlace setup.cfg --replace "[pytest]" "[tool:pytest]"
'';
meta = {
description = "Python attributes without boilerplate";
homepage = "https://characteristic.readthedocs.org";
};
}