31 lines
744 B
Nix
31 lines
744 B
Nix
{ lib, stdenv, buildPythonPackage, fetchPypi, pytest, hypothesis, zope_interface
|
|
, pympler, coverage, six, clang }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "attrs";
|
|
version = "18.1.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "e0d0eb91441a3b53dab4d9b743eafc1ac44476296a2053b6ca3af0b139faf87b";
|
|
};
|
|
|
|
# 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;
|
|
};
|
|
}
|