3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #133343 from fabaff/bump-class-registry

python3Packages.class-registry: 2.1.2 -> 3.0.5
This commit is contained in:
Sandro 2021-09-29 15:50:02 +02:00 committed by GitHub
commit e6f186cd95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,32 +1,32 @@
{
buildPythonPackage,
fetchPypi,
lib,
nose,
six,
typing ? null,
isPy27,
{ lib
, buildPythonPackage
, fetchFromGitHub
, nose
, pythonOlder
}:
buildPythonPackage rec {
pname = "class-registry";
version = "2.1.2";
version = "3.0.5";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "0zjf9nczl1ifzj07bgs6mwxsfd5xck9l0lchv2j0fv2n481xp2v7";
src = fetchFromGitHub {
owner = "todofixthis";
repo = pname;
rev = version;
sha256 = "0gpvq4a6qrr2iki6b4vxarjr1jrsw560m2qzm5bb43ix8c8b7y3q";
};
propagatedBuildInputs = [ six ] ++ lib.optional isPy27 typing;
checkInputs = [ nose ];
checkInputs = [
nose
];
# Tests currently failing.
doCheck = false;
pythonImportsCheck = [ "class_registry" ];
meta = {
description = "Factory+Registry pattern for Python classes.";
meta = with lib; {
description = "Factory and registry pattern for Python classes";
homepage = "https://class-registry.readthedocs.io/en/latest/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ kevincox ];
license = licenses.mit;
maintainers = with maintainers; [ kevincox ];
};
}