2017-09-05 10:16:41 +01:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, pytest, hypothesis, zope_interface
|
|
|
|
, pympler, coverage, six, clang }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "attrs";
|
2020-11-29 14:04:23 +00:00
|
|
|
version = "20.3.0";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:23 +00:00
|
|
|
sha256 = "832aa3cde19744e49938b91fea06d69ecb9e649c93ba974535d08ad92164f700";
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/hynek/attrs";
|
2017-09-05 10:16:41 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|