2017-09-05 10:16:41 +01:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, pytest, hypothesis, zope_interface
|
|
|
|
, pympler, coverage, six, clang }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "attrs";
|
2018-11-04 10:34:53 +00:00
|
|
|
version = "18.2.0";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-04 10:34:53 +00:00
|
|
|
sha256 = "10cbf6e27dbce8c30807caf056c8eb50917e0eaafe86347671b57254006c3e69";
|
2017-09-05 10:16:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# macOS needs clang for testing
|
2017-12-30 11:58:00 +00:00
|
|
|
checkInputs = [
|
2017-09-05 10:16:41 +01:00
|
|
|
pytest hypothesis zope_interface pympler coverage six
|
|
|
|
] ++ lib.optionals (stdenv.isDarwin) [ clang ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2017-12-30 11:58:00 +00:00
|
|
|
# To prevent infinite recursion with pytest
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-09-05 10:16:41 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python attributes without boilerplate";
|
|
|
|
homepage = https://github.com/hynek/attrs;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|