nixpkgs/pkgs/development/python-modules/attrs/default.nix

31 lines
746 B
Nix
Raw Normal View History

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