Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 django, 6 pythonOlder, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "django-reversion"; 12 version = "5.0.12"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-wEfMmanxukqubbicOsJDR41t6Y7Ipgxwc/zIddicXNs="; 20 }; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 propagatedBuildInputs = [ django ]; 25 26 # Tests assume the availability of a mysql/postgresql database 27 doCheck = false; 28 29 pythonImportsCheck = [ "reversion" ]; 30 31 meta = with lib; { 32 description = "Extension to the Django web framework that provides comprehensive version control facilities"; 33 homepage = "https://github.com/etianen/django-reversion"; 34 changelog = "https://github.com/etianen/django-reversion/blob/v${version}/CHANGELOG.rst"; 35 license = licenses.bsd3; 36 maintainers = [ ]; 37 }; 38}