Merge pull request #28884 from FRidh/python-fixes
Python: several fixes
This commit is contained in:
committed by
Frederik Rietdijk
parent
036bafe0b9
commit
67651d80bc
28
pkgs/development/python-modules/attrs/default.nix
Normal file
28
pkgs/development/python-modules/attrs/default.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ lib, stdenv, buildPythonPackage, fetchPypi, pytest, hypothesis, zope_interface
|
||||
, pympler, coverage, six, clang }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
name = "${pname}-${version}";
|
||||
pname = "attrs";
|
||||
version = "17.2.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "04gx08ikpk26wnq22f7l42gapcvk8iz1512r927k6sadz6cinkax";
|
||||
};
|
||||
|
||||
# macOS needs clang for testing
|
||||
buildInputs = [
|
||||
pytest hypothesis zope_interface pympler coverage six
|
||||
] ++ lib.optionals (stdenv.isDarwin) [ clang ];
|
||||
|
||||
checkPhase = ''
|
||||
py.test
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python attributes without boilerplate";
|
||||
homepage = https://github.com/hynek/attrs;
|
||||
license = licenses.mit;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user