1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 wheel,
7 django,
8 mock,
9}:
10
11buildPythonPackage {
12 pname = "mock-django";
13 version = "0.6.10";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "dcramer";
18 repo = "mock-django";
19 rev = "1168d3255e0d67fbf74a9c71feaccbdafef59d21";
20 hash = "sha256-sjrRxu2754sAaXZRlAfBhdLFHqiRlqPHVPQv4B6oArw=";
21 };
22
23 build-system = [
24 setuptools
25 wheel
26 ];
27
28 dependencies = [
29 django
30 mock
31 ];
32
33 # tests are based on nose, which is not supported anymore
34 doCheck = false;
35
36 meta = {
37 description = "Simple library for mocking certain Django behavior, such as the ORM";
38 homepage = "https://github.com/dcramer/mock-django";
39 license = lib.licenses.asl20;
40 maintainers = with lib.maintainers; [ defelo ];
41 };
42}