26 buildPythonPackage rec {
27 pname = "django-silk";
29 format = "setuptools";
31 disabled = pythonOlder "3.7";
33 src = fetchFromGitHub {
36 rev = "refs/tags/${version}";
37 hash = "sha256-91FcOqAYZK7/RCKgXjbQEPUQ2cZRFi7NzVLQF+MMDRI=";
40 # "test_time_taken" tests aren't suitable for reproducible execution, but Django's
41 # test runner doesn't have an easy way to ignore tests - so instead prevent it from picking
44 substituteInPlace project/tests/test_silky_profiler.py \
45 --replace "def test_time_taken" "def _test_time_taken"
46 substituteInPlace setup.py \
47 --replace 'use_scm_version=True' 'version="${version}"'
58 propagatedBuildInputs = [
79 pythonImportsCheck = [
87 DB_ENGINE=sqlite3 DB_NAME=':memory:' ${python.interpreter} manage.py test
94 description = "Silky smooth profiling for the Django Framework";
95 homepage = "https://github.com/jazzband/django-silk";
96 changelog = "https://github.com/jazzband/django-silk/blob/${version}/CHANGELOG.md";
97 license = licenses.mit;
98 maintainers = with maintainers; [ ris ];