nixpkgs/pkgs/development/python-modules/attrs/default.nix

31 lines
744 B
Nix
Raw Normal View History

{ lib, stdenv, buildPythonPackage, fetchPypi, pytest, hypothesis, zope_interface
, pympler, coverage, six, clang }:
buildPythonPackage rec {
pname = "attrs";
2017-12-30 11:21:43 +00:00
version = "17.4.0";
src = fetchPypi {
inherit pname version;
2017-12-30 11:21:43 +00:00
sha256 = "1c7960ccfd6a005cd9f7ba884e6316b5e430a3f1a6c37c5f87d8b43f83b54ec9";
};
# macOS needs clang for testing
checkInputs = [
pytest hypothesis zope_interface pympler coverage six
] ++ lib.optionals (stdenv.isDarwin) [ clang ];
checkPhase = ''
py.test
'';
# To prevent infinite recursion with pytest
doCheck = false;
meta = with lib; {
description = "Python attributes without boilerplate";
homepage = https://github.com/hynek/attrs;
license = licenses.mit;
};
}