nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5}:
6
7buildPythonPackage {
8 pname = "dpcontracts";
9 version = "unstable-2018-11-20";
10 format = "setuptools";
11
12 src = fetchFromGitHub {
13 owner = "deadpixi";
14 repo = "contracts";
15 rev = "45cb8542272c2ebe095c6efb97aa9407ddc8bf3c";
16 hash = "sha256-FygJPXo7lZ9tlfqY6KmPJ3PLIilMGLBr3013uj9hCEs=";
17 };
18
19 # package does not have any tests
20 doCheck = false;
21
22 pythonImportsCheck = [ "dpcontracts" ];
23
24 meta = {
25 description = "Provides a collection of decorators that makes it easy to write software using contracts";
26 homepage = "https://github.com/deadpixi/contracts";
27 license = lib.licenses.lgpl3Only;
28 maintainers = with lib.maintainers; [ gador ];
29 };
30}