evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / attr / default.nix
blob5a6400d3e5e3a503cf21d0f38e98e3a4dce1a3ed
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   setuptools,
6   python,
7 }:
9 buildPythonPackage rec {
10   pname = "attr";
11   version = "0.3.2";
12   pyproject = true;
14   src = fetchFromGitHub {
15     owner = "denis-ryzhkov";
16     repo = "attr";
17     rev = version;
18     hash = "sha256-1gOAONDuZb7xEPFZJc00BRtFF06uX65S8b3RRRNGeSo=";
19   };
21   build-system = [ setuptools ];
23   checkPhase = ''
24     runHook preCheck
25     ${python.interpreter} -c "import dry_attr; dry_attr.test()"
26     runHook postCheck
27   '';
29   meta = {
30     description = "Simple decorator to set attributes of target function or class in a DRY way.";
31     homepage = "https://github.com/denis-ryzhkov/attr";
32     license = lib.licenses.mit;
33     maintainers = with lib.maintainers; [ pyrox0 ];
34   };