2017-09-05 09:16:41 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, pytest, hypothesis, zope_interface
|
|
|
|
, pympler, coverage, six, clang }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "attrs";
|
2019-10-16 14:38:50 +00:00
|
|
|
version = "19.3.0";
|
2017-09-05 09:16:41 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 14:38:50 +00:00
|
|
|
sha256 = "f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72";
|
2017-09-05 09:16:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# macOS needs clang for testing
|
2017-12-30 11:58:00 +00:00
|
|
|
checkInputs = [
|
2017-09-05 09:16:41 +00: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 09:16:41 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Python attributes without boilerplate";
|
|
|
|
homepage = https://github.com/hynek/attrs;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|