1{ lib, stdenv, buildPythonPackage, fetchPypi, pytest, hypothesis, zope_interface
2, pympler, coverage, six, clang }:
3
4buildPythonPackage rec {
5 name = "${pname}-${version}";
6 pname = "attrs";
7 version = "17.2.0";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "04gx08ikpk26wnq22f7l42gapcvk8iz1512r927k6sadz6cinkax";
12 };
13
14 # macOS needs clang for testing
15 buildInputs = [
16 pytest hypothesis zope_interface pympler coverage six
17 ] ++ lib.optionals (stdenv.isDarwin) [ clang ];
18
19 checkPhase = ''
20 py.test
21 '';
22
23 meta = with lib; {
24 description = "Python attributes without boilerplate";
25 homepage = https://github.com/hynek/attrs;
26 license = licenses.mit;
27 };
28}