2017-09-05 10:16:41 +01:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, pytest, hypothesis, zope_interface
|
|
|
|
, pympler, coverage, six, clang }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "attrs";
|
2019-10-16 15:38:50 +01:00
|
|
|
version = "19.3.0";
|
2017-09-05 10:16:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-16 15:38:50 +01:00
|
|
|
sha256 = "f7b7ce16570fe9965acd6d30101a28f62fb4a7f9e926b3bbc9b61f8b04247e72";
|
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;
|
|
|
|
};
|
|
|
|
}
|