nixpkgs/pkgs/development/python-modules/typeguard/default.nix
Silvan Mosberger f5fa5fa4d6 pkgs: refactor needless quoting of homepage meta attribute (#27809)
* pkgs: refactor needless quoting of homepage meta attribute

A lot of packages are needlessly quoting the homepage meta attribute
(about 1400, 22%), this commit refactors all of those instances.

* pkgs: Fixing some links that were wrongfully unquoted in the previous
commit

* Fixed some instances
2017-08-01 22:03:30 +02:00

39 lines
763 B
Nix

{ buildPythonPackage
, fetchPypi
, pythonOlder
, stdenv
, setuptools_scm
, pytest
}:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "typeguard";
version = "2.1.3";
src = fetchPypi {
inherit pname version;
sha256 = "0l3pih5ca469v7if255h5rqymirsw46bi6s7p885jxhq1gv6cfpk";
};
buildInputs = [ setuptools_scm ];
postPatch = ''
substituteInPlace setup.cfg --replace " --cov" ""
'';
checkInputs = [ pytest ];
checkPhase = ''
py.test .
'';
disabled = pythonOlder "3.3";
meta = with stdenv.lib; {
description = "This library provides run-time type checking for functions defined with argument type annotations";
homepage = https://github.com/agronholm/typeguard;
license = licenses.mit;
};
}